LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Kernel Programming question.

[ILUG] Kernel Programming question.

Caolan McNamara Caolan.McNamara at ul.ie
Thu Nov 25 17:59:06 GMT 1999


On 25-Nov-99 John Ronan wrote:
>Quick one,
>I've an algorithm which works on multiples of 12 byte blocks, I've put this
>into a device driver (kernel module), the operation is done on a 'write' my
>question is which error is more correct, EIO or ENOSPC? 
>
>seeing as I'm probably the only person going to use the device, it really
>isn't
>a life or death situation...

ENOSPC if the reason it failed was because there was no more space left, and
EIO if its someother reason methinks. I reckon ENOSPC only makes sense for
drivers which handle storage media. But thats just from looking at the errno
manpage and thinking about what id expect back, im probably all wrong.

C.

Real Life: Caolan McNamara           *  Doing: MSc in HCI
Work: Caolan.McNamara at ul.ie          *  Phone: +353-86-8790257
URL: http://www.csn.ul.ie/~caolan    *  Sig: an oblique strategy
Overtly resist change




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell