when to return -EOPNOTSUPP in _ioctl in a driver

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

 



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 -EOPNOTSUPP;
}


do we actually need to specify a pointer to the ioctl callback, if the
driver doesn't support ioctl?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux