Reputation: 355
I'm writing a Linux Kernel Module, and my userland app is looping on a parallel ioctl
call (to get info from the kernel module). But when I want to close the file descriptor (linked to my kernel module), the release
function is not executed until the ioctl
function has not exited.
I can't find anything on why it behaves like that. Do you have an idea on why it happens, and how I can avoid this blocking ? I'd basically like to have my ioctl
and close
functions being executed simultaneously in my kernel module.
Thank you ! :)
Upvotes: 1
Views: 1203
Reputation: 66118
I'd basically like to have my
ioctl
andclose
functions being executed simultaneously in my kernel module.
You cannot.
Calling .release()
method means that the file object isn't used anymore. So it cannot be executed while ioctl
for given file is in progress.
Upvotes: 1