Home
last modified time | relevance | path

Searched refs:timer_func (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.3/kernel/src/time/
Dtimer.c75 void timer_func_init(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data, ui… in timer_func_init() argument
77 list_init(&timer_func->list); in timer_func_init()
78 timer_func->func = func; in timer_func_init()
79 timer_func->data = data; in timer_func_init()
80 timer_func->expire_jiffies = cal_next_n_ms_jiffies(expire_ms); // 设置过期的时间片 in timer_func_init()
91 void timer_func_init_us(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data,… in timer_func_init_us() argument
93 list_init(&timer_func->list); in timer_func_init_us()
94 timer_func->func = func; in timer_func_init_us()
95 timer_func->data = data; in timer_func_init_us()
96 timer_func->expire_jiffies = cal_next_n_us_jiffies(expire_us); // 设置过期的时间片 in timer_func_init_us()
[all …]
Dtimer.h42 void timer_func_init(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data, ui…
52 void timer_func_init_us(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data,…
59 void timer_func_add(struct timer_func_list_t *timer_func);
66 void timer_func_del(struct timer_func_list_t *timer_func);