1STRUCT HRTIMER_CLOCK(9) Driver Basics STRUCT HRTIMER_CLOCK(9)
2
3
4
6 struct_hrtimer_clock_base - the timer base for a specific clock
7
9 struct hrtimer_clock_base {
10 struct hrtimer_cpu_base * cpu_base;
11 int index;
12 clockid_t clockid;
13 struct timerqueue_head active;
14 ktime_t resolution;
15 ktime_t (* get_time) (void);
16 RH_KABI_DEPRECATE(ktime_t# softirq_time)ktime_t offset;
17 };
18
20 cpu_base
21 per cpu clock base
22
23 index
24 clock type index for per_cpu support when moving a timer to a base
25 on another cpu.
26
27 clockid
28 clock id for per_cpu support
29
30 active
31 red black tree root node for the active timers
32
33 resolution
34 the resolution of the clock, in nanoseconds
35
36 get_time
37 function to retrieve the current time of the clock
38
39 offset
40 offset of this clock to the monotonic base
41
43Kernel Hackers Manual 3.10 June 2019 STRUCT HRTIMER_CLOCK(9)