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_equal
— Compares two ktime_t variables to see if they are equal
ktime_compare
— Compares two ktime_t variables for less, greater or equal
ktime_after
— Compare if a ktime_t value is bigger than another one.
ktime_before
— Compare if a ktime_t value is smaller than another one.
ktime_to_timespec_cond
— convert a ktime_t variable to timespec format only if the variable contains data
ktime_to_timespec64_cond
— convert a ktime_t variable to timespec64 format only if the variable contains data
struct hrtimer
— the basic hrtimer structure
struct hrtimer_sleeper
— simple sleeper structure
struct hrtimer_clock_base
— the timer base for a specific clock
hrtimer_start
— (re)start an hrtimer on the current CPU
hrtimer_forward_now
— forward the timer expiry so it expires after now
hrtimer_forward
— forward the timer expiry
hrtimer_start_range_ns
— (re)start an hrtimer 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
schedule_hrtimeout_range
— sleep until timeout
schedule_hrtimeout
— sleep until timeout