table of contents
WAIT_ON_BIT_LOCK_ACT(9) | Driver Basics | WAIT_ON_BIT_LOCK_ACT(9) |
NAME¶
wait_on_bit_lock_action - wait for a bit to be cleared, when wanting to set it
SYNOPSIS¶
int wait_on_bit_lock_action(unsigned long * word, int bit, wait_bit_action_f * action, unsigned mode);
ARGUMENTS¶
word
bit
action
mode
DESCRIPTION¶
Use the standard hashed waitqueue table to wait for a bit to be cleared and then to set it, and allow the waiting action to be specified. This is like wait_on_bit but allows fine control of how the waiting is done.
Returns zero if the bit was (eventually) found to be clear and was set. Returns non-zero if a signal was delivered to the process and the mode allows that signal to wake the process.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |