wait_on_bit_action(9) - phpMan
WAIT_ON_BIT_ACTION(9) Driver Basics WAIT_ON_BIT_ACTION(9)
wait_on_bit_action - wait for a bit to be cleared
int wait_on_bit_action(unsigned long * word, int bit, wait_bit_action_f * action,
the word being waited on, a kernel virtual address
the bit of the word being waited on
the function used to sleep, which may take special actions
the task state to sleep in
Use the standard hashed waitqueue table to wait for a bit to be cleared, and allow the
waiting action to be specified. This is like wait_on_bit but allows fine control of how
the waiting is done.
Returned value will be zero if the bit was cleared, or non-zero if the process received a
signal and the mode permitted wakeup on that signal.
Kernel Hackers Manual 4.8. January 2017 WAIT_ON_BIT_ACTION(9)