Linux Kernel
3.7.1
|
#include <linux/cpu.h>
#include <linux/export.h>
#include <linux/percpu.h>
#include <linux/hrtimer.h>
#include <linux/notifier.h>
#include <linux/syscalls.h>
#include <linux/kallsyms.h>
#include <linux/interrupt.h>
#include <linux/tick.h>
#include <linux/seq_file.h>
#include <linux/err.h>
#include <linux/debugobjects.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <asm/uaccess.h>
#include <trace/events/timer.h>
Go to the source code of this file.
Macros | |
#define | switch_hrtimer_base(t, b, p) (b) |
DEFINE_PER_CPU | ( | struct hrtimer_cpu_base | , |
hrtimer_bases | |||
) |
EXPORT_SYMBOL_GPL | ( | ktime_add_ns | ) |
EXPORT_SYMBOL_GPL | ( | ktime_sub_ns | ) |
EXPORT_SYMBOL_GPL | ( | ktime_add_safe | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_forward | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_start_range_ns | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_start | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_try_to_cancel | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_cancel | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_get_remaining | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_init | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_get_res | ) |
EXPORT_SYMBOL_GPL | ( | hrtimer_init_sleeper | ) |
EXPORT_SYMBOL_GPL | ( | schedule_hrtimeout_range | ) |
EXPORT_SYMBOL_GPL | ( | schedule_hrtimeout | ) |
void hrtimer_init | ( | struct hrtimer * | timer, |
clockid_t | clock_id, | ||
enum hrtimer_mode | mode | ||
) |
void hrtimer_init_sleeper | ( | struct hrtimer_sleeper * | sl, |
struct task_struct * | task | ||
) |
long __sched hrtimer_nanosleep_restart | ( | struct restart_block * | restart | ) |
int __sched schedule_hrtimeout | ( | ktime_t * | expires, |
const enum hrtimer_mode | mode | ||
) |
schedule_hrtimeout - sleep until timeout : timeout value (ktime_t) : timer mode, HRTIMER_MODE_ABS or HRTIMER_MODE_REL
Make the current task sleep until the given expiry time has elapsed. The routine will return immediately unless the current task state has been set (see set_current_state()).
You can set the task state as follows -
TASK_UNINTERRUPTIBLE - at least time is guaranteed to pass before the routine returns.
TASK_INTERRUPTIBLE - the routine may return early if a signal is delivered to the current task.
The current task state is guaranteed to be TASK_RUNNING when this routine returns.
Returns 0 when the timer has expired otherwise -EINTR
int __sched schedule_hrtimeout_range | ( | ktime_t * | expires, |
unsigned long | delta, | ||
const enum hrtimer_mode | mode | ||
) |
schedule_hrtimeout_range - sleep until timeout : timeout value (ktime_t) : slack in expires timeout (ktime_t) : timer mode, HRTIMER_MODE_ABS or HRTIMER_MODE_REL
Make the current task sleep until the given expiry time has elapsed. The routine will return immediately unless the current task state has been set (see set_current_state()).
The argument gives the kernel the freedom to schedule the actual wakeup to a time that is both power and performance friendly. The kernel give the normal best effort behavior for "@expires+@delta", but may decide to fire the timer earlier, but no earlier than .
You can set the task state as follows -
TASK_UNINTERRUPTIBLE - at least time is guaranteed to pass before the routine returns.
TASK_INTERRUPTIBLE - the routine may return early if a signal is delivered to the current task.
The current task state is guaranteed to be TASK_RUNNING when this routine returns.
Returns 0 when the timer has expired otherwise -EINTR