---
name: "struct_hrtimer_base"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_hrtimer_base"
---

# struct\_hrtimer\_base(9)

the timer base for a specific clock

## NAME

struct hrtimer\_base - the timer base for a specific clock

## SYNOPSIS

```
struct hrtimer_base {
  clockid_t index;
  spinlock_t lock;
  struct rb_root active;
  struct rb_node * first;
  ktime_t resolution;
  ktime_t (* get_time) (void);
  ktime_t (* get_softirq_time) (void);
  struct hrtimer * curr_timer;
  ktime_t softirq_time;
  struct lock_class_key lock_key;
};
```

## MEMBERS

index

clock type index for per\_cpu support when moving a timer to a base on another cpu.

lock

lock protecting the base and associated timers

active

red black tree root node for the active timers

first

pointer to the timer node which expires first

resolution

the resolution of the clock, in nanoseconds

get\_time

function to retrieve the current time of the clock

get\_softirq\_time

function to retrieve the current time from the softirq

curr\_timer

the timer which is executing a callback right now

softirq\_time

the time when running the hrtimer queue in the softirq

lock\_key

the lock\_class\_key for use with lockdep

## COPYRIGHT
