High-resolution timers
Prev | Chapter 1. Driver Basics | Next

## High-resolution timers

ktime_set — Set a ktime_t variable from a seconds/nanoseconds value
ktime_sub — subtract two ktime_t variables
ktime_add — add two ktime_t variables
timespec_to_ktime — convert a timespec to ktime_t format
timeval_to_ktime — convert a timeval to ktime_t format
ktime_to_timespec — convert a ktime_t variable to timespec format
ktime_to_timeval — convert a ktime_t variable to timeval format
ktime_to_ns — convert a ktime_t variable to scalar nanoseconds
ktime_equal — Compares two ktime_t variables to see if they are equal
struct hrtimer — the basic hrtimer structure
struct hrtimer_sleeper — simple sleeper structure
struct hrtimer_clock_base — the timer base for a specific clock
ktime_get — get the monotonic time in ktime_t format
ktime_get_real — get the real (wall-) time in ktime_t format
ktime_get_ts — get the monotonic clock in timespec format
ktime_add_ns — Add a scalar nanoseconds value to a ktime_t variable
hrtimer_forward — forward the timer expiry
hrtimer_start — (re)start an relative timer on the current CPU
hrtimer_try_to_cancel — try to deactivate a timer
hrtimer_cancel — cancel a timer and wait for the handler to finish.
hrtimer_get_remaining — get remaining time for the timer
hrtimer_init — initialize a timer to the given clock
hrtimer_get_res — get the timer resolution for a clock

Prev | Up | Next
msleep_interruptible | Home | ktime_set