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

Functions

void init_alarm (struct alarm_block *t, void *data, void(*fcn)(struct alarm_block *a, void *data))
 
void add_alarm (struct alarm_block *alarm, unsigned long sc, unsigned long usc)
 
void del_alarm (struct alarm_block *alarm)
 
int alarm_pending (struct alarm_block *alarm)
 
struct timeval * get_next_alarm_run (struct timeval *next_run)
 
struct timeval * do_alarm_run (struct timeval *next_run)
 

Function Documentation

void add_alarm ( struct alarm_block alarm,
unsigned long  sc,
unsigned long  usc 
)

References del_alarm(), gettimeofday_cached(), and alarm_block::tv.

Referenced by ctnl_init(), and tcp_send().

Here is the call graph for this function:

Here is the caller graph for this function:

int alarm_pending ( struct alarm_block alarm)

References alarm_block::node, and RB_EMPTY_NODE.

Referenced by tcp_send().

Here is the caller graph for this function:

void del_alarm ( struct alarm_block alarm)

References alarm_block::node, RB_CLEAR_NODE, RB_EMPTY_NODE, and rb_erase().

Referenced by add_alarm().

Here is the call graph for this function:

Here is the caller graph for this function:

struct timeval* do_alarm_run ( struct timeval *  next_run)

References container_of, data, get_next_alarm_run(), gettimeofday_cached(), INIT_LIST_HEAD, list_for_each_entry_safe, RB_CLEAR_NODE, rb_erase(), rb_first(), and rb_next().

Referenced by __attribute__().

Here is the call graph for this function:

Here is the caller graph for this function:

struct timeval* get_next_alarm_run ( struct timeval *  next_run)

References container_of, gettimeofday_cached(), NULL, and rb_first().

Referenced by __attribute__(), and do_alarm_run().

Here is the call graph for this function:

Here is the caller graph for this function:

void init_alarm ( struct alarm_block t,
void *  data,
void(*)(struct alarm_block *a, void *data fcn 
)

References alarm_block::data, data, alarm_block::function, alarm_block::node, RB_CLEAR_NODE, and alarm_block::tv.

Referenced by ctnl_init(), and tcp_client_create().

Here is the caller graph for this function: