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

NAME

6       wait_event - sleep until a condition gets true
7

SYNOPSIS

9       wait_event(wq, condition);
10

ARGUMENTS

12       wq
13           the waitqueue to wait on
14
15       condition
16           a C expression for the event to wait for
17

DESCRIPTION

19       The process is put to sleep (TASK_UNINTERRUPTIBLE) until the condition
20       evaluates to true. The condition is checked each time the waitqueue wq
21       is woken up.
22
23       wake_up has to be called after changing any variable that could change
24       the result of the wait condition.
25
27Kernel Hackers Manual 3.10         June 2019                     WAIT_EVENT(9)
Impressum