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

NAME

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

SYNOPSIS

11       wait_event_lock_irq_cmd(wq, condition, lock, cmd);
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 cmd and schedule
22           and reacquired afterwards.
23
24       cmd
25           a command which is invoked outside the critical section before
26           sleep
27

DESCRIPTION

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