[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sys_ioctl() and BKL
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/