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

NAME

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

SYNOPSIS

11       wait_event_interruptible_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_INTERRUPTIBLE) until the condition
26       evaluates to true or signal is received. The condition is checked each
27       time the waitqueue wq 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
35       The macro will return -ERESTARTSYS if it was interrupted by a signal
36       and 0 if condition evaluated to true.
37
39Kernel Hackers Manual 3.10         June 2019           WAIT_EVENT_INTERRUPT(9)
Impressum