1WAIT_ON_BIT_TIMEOUT(9) Driver Basics WAIT_ON_BIT_TIMEOUT(9)
2
3
4
6 wait_on_bit_timeout - wait for a bit to be cleared or a timeout elapses
7
9 int wait_on_bit_timeout(void * word, int bit, unsigned mode,
10 unsigned long timeout);
11
13 word
14 the word being waited on, a kernel virtual address
15
16 bit
17 the bit of the word being waited on
18
19 mode
20 the task state to sleep in
21
22 timeout
23 timeout, in jiffies
24
26 Use the standard hashed waitqueue table to wait for a bit to be
27 cleared. This is similar to wait_on_bit, except also takes a timeout
28 parameter.
29
30 Returned value will be zero if the bit was cleared before the timeout
31 elapsed, or non-zero if the timeout elapsed or process received a
32 signal and the mode permitted wakeup on that signal.
33
35Kernel Hackers Manual 3.10 June 2019 WAIT_ON_BIT_TIMEOUT(9)