netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
timer.c File Reference
#include <ulogd/timer.h>
#include <stdlib.h>
#include <limits.h>
Include dependency graph for timer.c:

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)
 

Function Documentation

void ulogd_add_timer ( struct ulogd_timer alarm,
unsigned long  sc 
)

References NULL, ulogd_timer::tv, and ulogd_del_timer().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

struct timeval* ulogd_do_timer_run ( struct timeval *  next_run)
struct timeval* ulogd_get_next_timer_run ( struct timeval *  next_run)

References container_of, NULL, and rb_first().

Referenced by ulogd_do_timer_run().

Here is the call graph for this function:

Here is the caller graph for this function:

void ulogd_init_timer ( struct ulogd_timer t,
void *  data,
void(*)(struct ulogd_timer *a, void *data cb 
)
int ulogd_timer_pending ( struct ulogd_timer alarm)

References ulogd_timer::node, and RB_EMPTY_NODE.