what is the correct way for writing a blocking device driver?
Assume I have my device driver opened by multiple linux threads. While
one thread is sleeping in a blocking read call, another thread should be
able to forcefully terminate all pending reads.
However, in case I understand the close system call right, I can't
simply call close and use the drivers release hook for this purpose as
close doesn't necessarily call the release hook.
So what is the right way to go for this? Implementing a special ioctl
for that purpose? This seems strange... any other possibility?
Thanks and Regards,