Name

struct hrtimer — the basic hrtimer structure

Synopsis

struct hrtimer {
  struct rb_node node;
  struct list_head list;
  ktime_t expires;
  enum hrtimer_state state;
  int (* function) (void *);
  void * data;
  struct hrtimer_base * base;
};  

Members

node

red black tree node for time ordered insertion

list

list head for easier access to the time ordered list, without walking the red black tree.

expires

the absolute expiry time in the hrtimers internal representation. The time is related to the clock on which the timer is based.

state

state of the timer

function

timer expiry callback function

data

argument for the callback function

base

pointer to the timer base (per cpu and per clock)

Description

The hrtimer structure must be initialized by init_hrtimer_#CLOCKTYPE

Description

The hrtimer structure must be initialized by init_hrtimer_#CLOCKTYPE