/DragonOS-0.1.9/docs/kernel/sched/ |
D | kernel_timer.md | 9 …Timer`结构体,而`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.9/kernel/src/time/ |
D | timer.rs | 32 pub static ref TIMER_LIST: SpinLock<LinkedList<Arc<Timer>>> = SpinLock::new(LinkedList::new()); 60 pub struct Timer { struct 64 impl Timer { impl 73 let result: Arc<Timer> = Arc::new(Timer { in new() 115 let mut temp_list: LinkedList<Arc<Timer>> = timer_list.split_off(split_pos); in activate() 161 self_ref: Weak<Timer>, 276 let timer = Timer::new( in schedule_timeout()
|
D | sleep.rs | 15 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper}, 49 let timer: Arc<Timer> = Timer::new(handler, next_n_us_timer_jiffies(total_sleep_time_us)); in nanosleep()
|
D | clocksource.rs | 17 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.9/kernel/src/arch/x86_64/driver/apic/ |
D | mod.rs | 98 Timer = 0x832, enumerator 142 LVTRegister::Timer | LVTRegister::ErrorReg => {} in new() 161 if let LVTRegister::Timer = result.register { in new() 200 LVTRegister::Timer | LVTRegister::ErrorReg => { in set_delivery_mode() 215 if let LVTRegister::Timer | LVTRegister::ErrorReg = self.register { in delivery_mode() 312 LVTRegister::Timer => { in set_timer_mode() 336 if let LVTRegister::Timer = self.register { in timer_mode()
|
D | apic_timer.rs | 240 let lvt = LVT::new(LVTRegister::Timer, data).unwrap(); in setup_lvt() 256 let mut lvt = CurrentApic.read_lvt(LVTRegister::Timer); in start_current() 262 let mut lvt = CurrentApic.read_lvt(LVTRegister::Timer); in stop_current()
|
D | x2apic.rs | 106 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt()
|
D | xapic.rs | 103 LVTRegister::Timer => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_TIMER, in from() 326 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt()
|
/DragonOS-0.1.9/kernel/src/driver/video/ |
D | mod.rs | 17 time::timer::{Timer, TimerFunction}, 55 let timer = Timer::new(VideoRefreshExecutor::new(), 1); in run_video_refresh() 254 let timer = Timer::new(VideoRefreshExecutor::new(), REFRESH_INTERVAL); in run()
|
/DragonOS-0.1.9/kernel/src/net/ |
D | net_core.rs | 10 time::timer::{next_n_ms_timer_jiffies, Timer, TimerFunction}, 28 let timer = Timer::new(Box::new(NetWorkPollFunc), next_time); in run()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/driver/ |
D | sbi.rs | 86 if sbi_rt::probe_extension(sbi_rt::Timer).is_available() { in probe_extensions()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/ipc/ |
D | signal.rs | 181 Timer = -2, enumerator 198 -2 => Self::Timer, in from_i32()
|
/DragonOS-0.1.9/kernel/src/libs/futex/ |
D | futex.rs | 18 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper}, 273 let wake_up = Timer::new(wakeup_helper, jiffies); in futex_wait()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/ipc/ |
D | signal.rs | 199 Timer = -2, enumerator 216 -2 => Self::Timer, in from_i32()
|
/DragonOS-0.1.9/kernel/src/net/event_poll/ |
D | mod.rs | 28 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper}, 480 let inner = Timer::new(handle, jiffies); in do_epoll_wait()
|