Functions | |
void | ulogd_init_timer (struct ulogd_timer *t, void *data, void(*cb)(struct ulogd_timer *a, void *data)) |
void | ulogd_add_timer (struct ulogd_timer *alarm, unsigned long sc) |
void | ulogd_del_timer (struct ulogd_timer *alarm) |
int | ulogd_timer_pending (struct ulogd_timer *alarm) |
struct timeval * | ulogd_get_next_timer_run (struct timeval *next_run) |
struct timeval * | ulogd_do_timer_run (struct timeval *next_run) |
void ulogd_add_timer | ( | struct ulogd_timer * | alarm, |
unsigned long | sc | ||
) |
void ulogd_del_timer | ( | struct ulogd_timer * | alarm | ) |
References ulogd_timer::node, RB_CLEAR_NODE, RB_EMPTY_NODE, and rb_erase().
Referenced by ulogd_add_timer().
References container_of, INIT_LLIST_HEAD, llist_for_each_entry, NULL, RB_CLEAR_NODE, rb_erase(), rb_first(), rb_next(), and ulogd_get_next_timer_run().
References container_of, NULL, and rb_first().
Referenced by ulogd_do_timer_run().
void ulogd_init_timer | ( | struct ulogd_timer * | t, |
void * | data, | ||
void(*)(struct ulogd_timer *a, void *data) | cb | ||
) |
References ulogd_timer::cb, ulogd_timer::data, data, ulogd_timer::node, RB_CLEAR_NODE, and ulogd_timer::tv.
int ulogd_timer_pending | ( | struct ulogd_timer * | alarm | ) |
References ulogd_timer::node, and RB_EMPTY_NODE.