Home
last modified time | relevance | path

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

/DragonOS/docs/kernel/sched/
H A Dkernel_timer.md9 …`存储系统创建的定时器。创建定时器时,应调用`Timer::new(timer_func,expire_jiffies)`,timer_func为定时器要执行的操作,expire_jiffies为…
32 pub fn new(timer_func: Box<dyn TimerFunction>, expire_jiffies: u64) -> Arc<Self>
37 - timer_func:定时器需要执行的函数对应的结构体,其实现了`TimerFunction`特性
/DragonOS/kernel/src/time/
H A Dtimer.rs119 pub fn new(timer_func: Box<dyn TimerFunction>, expire_jiffies: u64) -> Arc<Self> { in new()
123 timer_func: Some(timer_func), in new()
179 let func = timer.timer_func.take(); in run()
212 pub timer_func: Option<Box<dyn TimerFunction>>, field
/DragonOS/kernel/src/process/
H A Dtimer.rs36 pub fn new(timer_func: Box<dyn TimerFunction>, second: u64) -> Self { in new()
40 timer: Timer::new(timer_func, expired_jiffies), in new()