[ILUG] Kernel Programming question.
Caolan.McNamara at ul.ie
Thu Nov 25 17:59:06 GMT 1999
On 25-Nov-99 John Ronan wrote:
>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
>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.
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