#include "kal_time.h"
#include <linux/aquosa/qos_debug.h>
#include <linux/aquosa/qos_types.h>
#include <linux/aquosa/qos_memory.h>
#include <linux/time.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#include "kal_arg.h"
Go to the source code of this file.
Data Structures | |
struct | kal_timer_t |
Typedefs | |
typedef void(* | linux_timer_cb )(unsigned long cb_data) |
typedef void(* | kal_timer_cb )(kal_arg_t cb_data) |
Functions | |
static 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 void(* kal_timer_cb)(kal_arg_t cb_data) |
Definition at line 18 of file kal_timer_wheel.h.
typedef void(* linux_timer_cb)(unsigned long cb_data) |
Definition at line 17 of file kal_timer_wheel.h.
static void kal_timer_del | ( | kal_timer_t * | p_timer | ) | [inline, static] |
Definition at line 56 of file kal_timer_wheel.h.
References del_timer_sync(), kal_timer_t::handler_running, kal_timer_t::timer, and timer_pending().
Referenced by kal_timer_forward().
static void kal_timer_forward | ( | kal_timer_t * | p_timer, | |
kal_time_t | t | |||
) | [inline, static] |
Definition at line 61 of file kal_timer_wheel.h.
References add_timer(), kal_time2jiffies(), kal_timer_del(), and kal_timer_t::timer.
static void kal_timer_init | ( | kal_timer_t * | p_timer, | |
kal_timer_cb | cb, | |||
kal_arg_t | cb_data | |||
) | [inline, static] |
Definition at line 35 of file kal_timer_wheel.h.
References setup_timer(), kal_timer_t::timer, timer_callback(), kal_timer_t::timer_cb, and kal_timer_t::timer_cb_data.
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 41 of file kal_timer_wheel.h.
References get_jiffies(), kal_timer_init(), and kal_timer_t::timer.
static int kal_timer_pending | ( | kal_timer_t * | p_timer | ) | [inline, static] |
Definition at line 70 of file kal_timer_wheel.h.
References kal_timer_t::timer, and timer_pending().
static void kal_timer_set | ( | kal_timer_t * | p_timer, | |
kal_time_t | t | |||
) | [inline, static] |
Definition at line 48 of file kal_timer_wheel.h.
References add_timer(), del_timer(), kal_time2jiffies(), and kal_timer_t::timer.
static void timer_callback | ( | unsigned long | cb_data | ) | [static] |
Definition at line 27 of file kal_timer_wheel.h.
References kal_timer_t::handler_running, qos_chk_do, qos_mem_valid(), kal_timer_t::timer_cb, and kal_timer_t::timer_cb_data.