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

NAME

6       schedule_hrtimeout - sleep until timeout
7

SYNOPSIS

9       int __sched schedule_hrtimeout(ktime_t * expires,
10                                      const enum hrtimer_mode mode);
11

ARGUMENTS

13       expires
14           timeout value (ktime_t)
15
16       mode
17           timer mode, HRTIMER_MODE_ABS or HRTIMER_MODE_REL
18

DESCRIPTION

20       Make the current task sleep until the given expiry time has elapsed.
21       The routine will return immediately unless the current task state has
22       been set (see set_current_state).
23
24       You can set the task state as follows -
25
26       TASK_UNINTERRUPTIBLE - at least timeout time is guaranteed to pass
27       before the routine returns.
28
29       TASK_INTERRUPTIBLE - the routine may return early if a signal is
30       delivered to the current task.
31
32       The current task state is guaranteed to be TASK_RUNNING when this
33       routine returns.
34
35       Returns 0 when the timer has expired otherwise -EINTR
36
38Kernel Hackers Manual 3.10         June 2019             SCHEDULE_HRTIMEOUT(9)
Impressum