Re: [PATCH] staging: comedi: replace ENOSYS by proper error codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Jun 2015 13:43:27 -0700
Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, Jun 12, 2015 at 10:20:38PM +0200, julien.dehee@xxxxxxxxx wrote:
> > From: Julien Dehee <julien.dehee@xxxxxxxxx>
> > 
> > comedi/comedi_fops.c
> >     use ENODEV following open manual

That should probably be ENXIO by a strict reading, but Linux has always
used ENODEV 8)

> > 
> > comedi/drivers.c
> >     use ENOTTY following ioctl manual
> > 
> > drivers/serial2002.c
> >     use ENOTTY following ioctl manual
> 
> What do you mean by "ioctl manual"?

man 2 ioctl

Unknown ioctls on a device should error with ENOTTY. It's one of
those crazy pieces of Unix history.

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux