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

NAME

6       wait_event_lock_irq - sleep until a condition gets true. The condition
7       is checked under the lock. This is expected to be called with the lock
8       taken.
9

SYNOPSIS

11       wait_event_lock_irq(wq, condition, lock);
12

ARGUMENTS

14       wq
15           the waitqueue to wait on
16
17       condition
18           a C expression for the event to wait for
19
20       lock
21           a locked spinlock_t, which will be released before schedule and
22           reacquired afterwards.
23

DESCRIPTION

25       The process is put to sleep (TASK_UNINTERRUPTIBLE) until the condition
26       evaluates to true. The condition is checked each time the waitqueue wq
27       is woken up.
28
29       wake_up has to be called after changing any variable that could change
30       the result of the wait condition.
31
32       This is supposed to be called while holding the lock. The lock is
33       dropped before going to sleep and is reacquired afterwards.
34
36Kernel Hackers Manual 3.10         June 2019            WAIT_EVENT_LOCK_IRQ(9)
Impressum