libosmocore 1.9.0.196-9975
Osmocom core library
osmo_timer_list Struct Reference

A structure representing a single instance of a timer. More...

#include <timer.h>

Data Fields

struct rb_node node
 rb-tree node header More...
 
struct llist_head list
 internal list header More...
 
struct timeval timeout
 expiration time More...
 
unsigned int active: 1
 is it active? More...
 
void(* cb )(void *)
 call-back called at timeout More...
 
void * data
 user data for callback More...
 

Detailed Description

A structure representing a single instance of a timer.

Field Documentation

◆ active

unsigned int osmo_timer_list::active

◆ cb

void(* osmo_timer_list::cb) (void *)

call-back called at timeout

Referenced by osmo_timer_setup(), and osmo_timers_update().

◆ data

void* osmo_timer_list::data

user data for callback

Referenced by osmo_timer_setup().

◆ list

struct llist_head osmo_timer_list::list

internal list header

Referenced by osmo_timer_add(), and osmo_timer_del().

◆ node

struct rb_node osmo_timer_list::node

rb-tree node header

Referenced by __add_timer(), and osmo_timer_del().

◆ timeout

struct timeval osmo_timer_list::timeout

The documentation for this struct was generated from the following file: