1#ifndef __LINUX_HRTIMER_H__
2#define __LINUX_HRTIMER_H__
92#define HRTIMER_STATE_INACTIVE 0
93#define HRTIMER_STATE_ENQUEUED 1
124static inline void hrtimer_setup(
137static inline void hrtimer_start(
struct hrtimer* timer,
ktime_t tim,
152 ? ktime_add(ktime_get(), tim) : tim;
163static inline int hrtimer_try_to_cancel(
struct hrtimer* timer)
165 int was_pending = timer->
pending;
171static inline int hrtimer_cancel(
struct hrtimer* timer)
173 return hrtimer_try_to_cancel(timer);
185static inline bool hrtimer_active(
const struct hrtimer* timer)
202 timer->
node.
expires = ktime_add(ktime_get(), interval);
hrtimer_mode
Definition hrtimer.h:83
@ HRTIMER_MODE_SOFT
Definition hrtimer.h:87
@ HRTIMER_MODE_ABS
Definition hrtimer.h:84
@ HRTIMER_MODE_PINNED
Definition hrtimer.h:86
@ HRTIMER_MODE_ABS_SOFT
Definition hrtimer.h:88
@ HRTIMER_MODE_REL_SOFT
Definition hrtimer.h:89
@ HRTIMER_MODE_REL
Definition hrtimer.h:85
hrtimer_restart
Definition hrtimer.h:71
@ HRTIMER_RESTART
Definition hrtimer.h:73
@ HRTIMER_NORESTART
Definition hrtimer.h:72
#define HRTIMER_STATE_ENQUEUED
Definition hrtimer.h:93
int clockid_t
Definition hrtimer.h:64
#define HRTIMER_STATE_INACTIVE
Definition hrtimer.h:92
uint64_t u64
Definition kernel.h:17
int64_t ktime_t
Definition kernel.h:404
enum hrtimer_restart(* function)(struct hrtimer *timer)
Definition hrtimer.h:113
enum hrtimer_mode mode
Definition hrtimer.h:109
int state
Definition hrtimer.h:114
int pending
Definition hrtimer.h:115
ktime_t _softexpires
Definition hrtimer.h:112
struct timerqueue_node node
Definition hrtimer.h:106
Definition timerqueue.h:29
ktime_t expires
Definition timerqueue.h:31