sys_ioctl() and BKL

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

 



Greetings,
    Does anybody know why sys_ioctl() calls lock_kernel() upon entry?  I 
didn't believe it so I did a test by adding a kernel_locked() check at 
the beginning and end of the ioctl function of my driver.  Sure enough, 
the big kernel lock is held for the duration of the ioctl.  If I wanted 
to allow for the possibility of concurrent ioctl calls to my driver, 
could I simply unlock_kernel at the beginning of the ioctl handler?

Thanks,
Kevin

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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