Hi community

I have a question related to the implementation of poll() in the kernel and 
drivers. I am implementing a driver with poll support (through 
file_operations::poll) and have observed that "teardown" of the pollfds is not 
performed if the task is killed (while task is blocked on a call to poll()). Is 
this intended behavior?

As file_operations::close is called it seems possible to find and remove the 
FD, but I cannot find any driver doing that. Since close is actually called on 
the driver, I would assume the intention is to clean up the driver, but I find 
it a little inconsistent that cleaning up the pollfds does not happen.

I am using the "flat" build configuration. The beavior may be different in 
"protected" builds?

Regards
Kian

Reply via email to