1ABORT_EXCLUSIVE_WAIT(9) Driver Basics ABORT_EXCLUSIVE_WAIT(9)
2
3
4
6 abort_exclusive_wait - abort exclusive waiting in a queue
7
9 void abort_exclusive_wait(wait_queue_head_t * q, wait_queue_t * wait,
10 unsigned int mode, void * key);
11
13 q
14 waitqueue waited on
15
16 wait
17 wait descriptor
18
19 mode
20 runstate of the waiter to be woken
21
22 key
23 key to identify a wait bit queue or NULL
24
26 Sets current thread back to running state and removes the wait
27 descriptor from the given waitqueue if still queued.
28
29 Wakes up the next waiter if the caller is concurrently woken up through
30 the queue.
31
32 This prevents waiter starvation where an exclusive waiter aborts and is
33 woken up concurrently and no one wakes up the next waiter.
34
36Kernel Hackers Manual 3.10 June 2019 ABORT_EXCLUSIVE_WAIT(9)