Lines Matching refs:timeout

3  *  Kernel internal schedule timeout and sleeping functions
25 struct process_timer *timeout = timer_container_of(timeout, t, timer);
27 wake_up_process(timeout->task);
31 * schedule_timeout - sleep until timeout
32 * @timeout: timeout value in jiffies
34 * Make the current task sleep until @timeout jiffies have elapsed.
42 * %TASK_UNINTERRUPTIBLE - at least @timeout jiffies are guaranteed to
53 * Specifying a @timeout value of %MAX_SCHEDULE_TIMEOUT will schedule
54 * the CPU away without a bound on the timeout. In this case the return
61 signed long __sched schedule_timeout(signed long timeout)
66 switch (timeout) {
85 if (timeout < 0) {
86 pr_err("%s: wrong timeout value %lx\n", __func__, timeout);
93 expire = timeout + jiffies;
105 timeout = expire - jiffies;
108 return timeout < 0 ? 0 : timeout;
118 * schedule_timeout_interruptible - sleep until timeout (interruptible)
119 * @timeout: timeout value in jiffies
123 * Task state is set to TASK_INTERRUPTIBLE before starting the timeout.
125 signed long __sched schedule_timeout_interruptible(signed long timeout)
128 return schedule_timeout(timeout);
133 * schedule_timeout_killable - sleep until timeout (killable)
134 * @timeout: timeout value in jiffies
138 * Task state is set to TASK_KILLABLE before starting the timeout.
140 signed long __sched schedule_timeout_killable(signed long timeout)
143 return schedule_timeout(timeout);
148 * schedule_timeout_uninterruptible - sleep until timeout (uninterruptible)
149 * @timeout: timeout value in jiffies
153 * Task state is set to TASK_UNINTERRUPTIBLE before starting the timeout.
155 signed long __sched schedule_timeout_uninterruptible(signed long timeout)
158 return schedule_timeout(timeout);
163 * schedule_timeout_idle - sleep until timeout (idle)
164 * @timeout: timeout value in jiffies
168 * Task state is set to TASK_IDLE before starting the timeout. It is similar to
172 signed long __sched schedule_timeout_idle(signed long timeout)
175 return schedule_timeout(timeout);
180 * schedule_hrtimeout_range_clock - sleep until timeout
181 * @expires: timeout value (ktime_t)
182 * @delta: slack in expires timeout (ktime_t)
195 * Optimize when a zero timeout value is given. It does not
228 * schedule_hrtimeout_range - sleep until timeout
229 * @expires: timeout value (ktime_t)
230 * @delta: slack in expires timeout (ktime_t)
245 * %TASK_UNINTERRUPTIBLE - at least @timeout time is guaranteed to
269 * schedule_hrtimeout - sleep until timeout
270 * @expires: timeout value (ktime_t)
315 unsigned long timeout = msecs_to_jiffies(msecs);
317 while (timeout)
318 timeout = schedule_timeout_uninterruptible(timeout);
336 unsigned long timeout = msecs_to_jiffies(msecs);
338 while (timeout && !signal_pending(current))
339 timeout = schedule_timeout_interruptible(timeout);
340 return jiffies_to_msecs(timeout);