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

NAME

6       wait_event_cmd - sleep until a condition gets true
7

SYNOPSIS

9       wait_event_cmd(wq, condition, cmd1, cmd2);
10

ARGUMENTS

12       wq
13           the waitqueue to wait on
14
15       condition
16           a C expression for the event to wait for
17
18       cmd1
19           -- undescribed --
20
21       cmd2
22           -- undescribed --
23

CMD1

25       the command will be executed before sleep
26

CMD2

28       the command will be executed after sleep
29
30       The process is put to sleep (TASK_UNINTERRUPTIBLE) until the condition
31       evaluates to true. The condition is checked each time the waitqueue wq
32       is woken up.
33
34       wake_up has to be called after changing any variable that could change
35       the result of the wait condition.
36
38Kernel Hackers Manual 3.10         June 2019                 WAIT_EVENT_CMD(9)
Impressum