As I understand, inside interrupt context we should not call functions that could sleep.
So, is there a documentation, convention, clues or any easy way to determine if some function in the kernel could sleep?
One major hint is a call to might_sleep
, which most core kernel functions call as a way of catching bogus callers early on. You can also look for calls to schedule
and its variants.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With