kal_timer_rtsim.h File Reference

#include <linux/time.h>
#include "kal_time.h"
#include <linux/aquosa/qos_types.h>
#include "kal_arg.h"

Go to the source code of this file.

Data Structures

struct  kal_timer_t
struct  timer_list

Typedefs

typedef void(* linux_timer_cb )(unsigned long cb_data)
 Move forward with respect to last expiry time.
typedef void(* kal_timer_cb )(kal_arg_t cb_data)

Functions

void setup_timer (void *p_timer, void *p_call_back, kal_arg_t cb_data)
void add_timer (void *p_timer)
void del_timer (void *p_timer)
void set_timer_expires (void *p_timer, unsigned long expires)
unsigned long get_timer_expires (void *p_timer)
int timer_pending (void *p_timer)
static void del_timer_sync (void *p_timer)
void timer_callback (unsigned long cb_data)
static void kal_timer_init (kal_timer_t *p_timer, kal_timer_cb cb, kal_arg_t cb_data)
static void kal_timer_init_now (kal_timer_t *p_timer, kal_timer_cb cb, kal_arg_t cb_data)
static void kal_timer_set (kal_timer_t *p_timer, kal_time_t t)
static void kal_timer_del (kal_timer_t *p_timer)
static void kal_timer_forward (kal_timer_t *p_timer, kal_time_t t)
static int kal_timer_pending (kal_timer_t *p_timer)

Typedef Documentation

typedef void(* kal_timer_cb)(kal_arg_t cb_data)

Definition at line 28 of file kal_timer_rtsim.h.

typedef void(* linux_timer_cb)(unsigned long cb_data)

Move forward with respect to last expiry time.

Definition at line 27 of file kal_timer_rtsim.h.


Function Documentation

void add_timer ( void *  p_timer  ) 

Referenced by kal_timer_forward(), and kal_timer_set().

void del_timer ( void *  p_timer  ) 

Referenced by del_timer_sync(), and kal_timer_set().

static void del_timer_sync ( void *  p_timer  )  [inline, static]

Definition at line 53 of file kal_timer_rtsim.h.

References del_timer().

Referenced by kal_timer_del().

unsigned long get_timer_expires ( void *  p_timer  ) 

Referenced by kal_timer_forward().

static void kal_timer_del ( kal_timer_t p_timer  )  [inline, static]

Definition at line 88 of file kal_timer_rtsim.h.

References del_timer_sync().

Referenced by kal_timer_forward().

static void kal_timer_forward ( kal_timer_t p_timer,
kal_time_t  t 
) [inline, static]
static void kal_timer_init ( kal_timer_t p_timer,
kal_timer_cb  cb,
kal_arg_t  cb_data 
) [inline, static]

Definition at line 69 of file kal_timer_rtsim.h.

References setup_timer().

Referenced by kal_timer_init_now().

static void kal_timer_init_now ( kal_timer_t p_timer,
kal_timer_cb  cb,
kal_arg_t  cb_data 
) [inline, static]

Definition at line 73 of file kal_timer_rtsim.h.

References get_jiffies(), kal_timer_init(), and set_timer_expires().

static int kal_timer_pending ( kal_timer_t p_timer  )  [inline, static]

Definition at line 101 of file kal_timer_rtsim.h.

References timer_pending().

static void kal_timer_set ( kal_timer_t p_timer,
kal_time_t  t 
) [inline, static]

Definition at line 80 of file kal_timer_rtsim.h.

References add_timer(), del_timer(), kal_time2jiffies(), and set_timer_expires().

void set_timer_expires ( void *  p_timer,
unsigned long  expires 
)
void setup_timer ( void *  p_timer,
void *  p_call_back,
kal_arg_t  cb_data 
)

Referenced by kal_timer_init().

void timer_callback ( unsigned long  cb_data  ) 

Definition at line 63 of file kal_timer_rtsim.h.

References kal_timer_t::handler_running, and kal_timer_t::timer_cb.

Referenced by kal_timer_init().

int timer_pending ( void *  p_timer  ) 

Referenced by kal_timer_del(), and kal_timer_pending().

Generated on Mon Aug 2 22:39:17 2010 for qosres by  doxygen 1.6.3