Re: when to return -EOPNOTSUPP in _ioctl in a driver

2012-10-04 Thread Luis R. Rodriguez
On Thu, Oct 4, 2012 at 12:29 AM, devendra.aaru devendra.a...@gmail.com wrote: actually i see it in drivers/staging/csr/ this is in netdev.c here they do the below way csr_xxx_ioctl() { int ret; ret = -EOPNOTSUPP; return ret; } if the ioctl just

Re: when to return -EOPNOTSUPP in _ioctl in a driver

2012-10-04 Thread devendra.aaru
On Thu, Oct 4, 2012 at 3:38 AM, Luis R. Rodriguez mcg...@do-not-panic.com wrote: On Thu, Oct 4, 2012 at 12:29 AM, devendra.aaru devendra.a...@gmail.com wrote: actually i see it in drivers/staging/csr/ this is in netdev.c here they do the below way csr_xxx_ioctl() { int

Re: when to return -EOPNOTSUPP in _ioctl in a driver

2012-10-02 Thread Luis R. Rodriguez
On Tue, Oct 2, 2012 at 8:26 AM, devendra.aaru devendra.a...@gmail.com wrote: Hi all, While going through some code, i have found a place in which we do return, -EOPNOTSUPP in an ioctl and the code of ioctl does just this one. static int drv_ioctl(.. *fops, ...) { return