Why there is no “interruptible” version for “wait_for_complete” API?
“If your code calls wait_for_completion and nobody ever completes the task, the result will be an unkillable process.” (Linux Device Driver 3rd Version, Page 115)
There's a footnote on that part.
Quote:
"*As of this writing, patches adding interruptible versions
were in circulation but had not been merged into the mainline."
End Quote
I'm searching, at the moment, as to where these patches can be found.
Interruptible waits - completion
There's a footnote on that part.
Quote:
"*As of this writing, patches adding interruptible versions
were in circulation but had not been merged into the mainline."
End Quote
I'm searching, at the moment, as to where these patches can be found.
After some searching, I think
After some searching, I think if your kernel version is later than 2.6.10 (the version covered in LDD 3rd edition) these API changes are there.
According to LWN: http://lwn.net/Articles/120614/ .
These API changes are from kernel version 2.6.11 and onwards.
Hope this helps.
JY
It's helpful. Thank a lots.
It's helpful. Thank a lots. ^_^