1WAIT_EVENT_HRTIMEOUT(9) Driver Basics WAIT_EVENT_HRTIMEOUT(9)
2
3
4
6 wait_event_hrtimeout - sleep until a condition gets true or a timeout
7 elapses
8
10 wait_event_hrtimeout(wq, condition, timeout);
11
13 wq
14 the waitqueue to wait on
15
16 condition
17 a C expression for the event to wait for
18
19 timeout
20 timeout, as a ktime_t
21
23 The process is put to sleep (TASK_UNINTERRUPTIBLE) until the condition
24 evaluates to true or a signal is received. The condition is checked
25 each time the waitqueue wq is woken up.
26
27 wake_up has to be called after changing any variable that could change
28 the result of the wait condition.
29
30 The function returns 0 if condition became true, or -ETIME if the
31 timeout elapsed.
32
34Kernel Hackers Manual 3.10 June 2019 WAIT_EVENT_HRTIMEOUT(9)