1WAIT_ON_ATOMIC_T(9) Driver Basics WAIT_ON_ATOMIC_T(9)
2
3
4
6 wait_on_atomic_t - Wait for an atomic_t to become 0
7
9 int wait_on_atomic_t(atomic_t * val, int (*action) (atomic_t *),
10 unsigned mode);
11
13 val
14 The atomic value being waited on, a kernel virtual address
15
16 action
17 the function used to sleep, which may take special actions
18
19 mode
20 the task state to sleep in
21
23 Wait for an atomic_t to become 0. We abuse the bit-wait waitqueue table
24 for the purpose of getting a waitqueue, but we set the key to a bit
25 number outside of the target 'word'.
26
28Kernel Hackers Manual 3.10 June 2019 WAIT_ON_ATOMIC_T(9)