1WAIT_ON_BIT_LOCK_IO(9)           Driver Basics          WAIT_ON_BIT_LOCK_IO(9)
2
3
4

NAME

6       wait_on_bit_lock_io - wait for a bit to be cleared, when wanting to set
7       it
8

SYNOPSIS

10       int wait_on_bit_lock_io(void * word, int bit, unsigned mode);
11

ARGUMENTS

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

DESCRIPTION

23       Use the standard hashed waitqueue table to wait for a bit to be cleared
24       and then to atomically set it. This is similar to wait_on_bit, but
25       calls io_schedule instead of schedule for the actual waiting.
26
27       Returns zero if the bit was (eventually) found to be clear and was set.
28       Returns non-zero if a signal was delivered to the process and the mode
29       allows that signal to wake the process.
30
32Kernel Hackers Manual 3.10         June 2019            WAIT_ON_BIT_LOCK_IO(9)
Impressum