Home
last modified time | relevance | path

Searched refs:Timer (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.8/docs/kernel/sched/
Dkernel_timer.md9Timer`结构体,而`Timer`由`SpinLock<InnerTimer>`组成。全局中使用元素类型为`Arc<Timer>`的队列`TIMER_LIST`存储系统创建的定时器。创建定时器时…
28 ### 4.1. Timer的API
165 let timer: Arc<Timer> = Timer::new(timer_example, 1);
/DragonOS-0.1.8/kernel/src/time/
Dsleep.rs13 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper},
43 let timer: Arc<Timer> = Timer::new( in nanosleep()
Dtimer.rs32 pub static ref TIMER_LIST: SpinLock<LinkedList<Arc<Timer>>> = SpinLock::new(LinkedList::new());
62 pub struct Timer(SpinLock<InnerTimer>); struct
64 impl Timer { implementation
73 let result: Arc<Timer> = Arc::new(Timer(SpinLock::new(InnerTimer { in new()
108 let mut temp_list: LinkedList<Arc<Timer>> = timer_list.split_off(split_pos); in activate()
135 self_ref: Weak<Timer>,
250 let timer = Timer::new(WakeUpHelper::new(current_pcb()), timeout as u64); in schedule_timeout()
Dclocksource.rs17 timer::{clock, Timer, TimerFunction},
151 let wd_timer = Timer::new(wd_timer_func, self.timer_expires); in clocksource_start_watchdog()
741 let watchdog_timer = Timer::new(watchdog_func, cs_watchdog.timer_expires); in clocksource_watchdog()
/DragonOS-0.1.8/kernel/src/net/
Dnet_core.rs10 time::timer::{next_n_ms_timer_jiffies, Timer, TimerFunction},
25 let timer = Timer::new(Box::new(NetWorkPollFunc), next_time); in run()
35 let timer = Timer::new(Box::new(NetWorkPollFunc), next_time); in net_init()