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

NAME

6       wait_event_killable - sleep until a condition gets true
7

SYNOPSIS

9       wait_event_killable(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_KILLABLE) until the condition
20       evaluates to true or a signal is received. The condition is checked
21       each time the waitqueue wq 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
26       The function will return -ERESTARTSYS if it was interrupted by a signal
27       and 0 if condition evaluated to true.
28
30Kernel Hackers Manual 3.10         June 2019            WAIT_EVENT_KILLABLE(9)
Impressum