/DragonOS/docs/kernel/sched/ |
H A 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/kernel/src/time/ |
H A D | sleep.rs | 15 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper}, 46 let timer: Arc<Timer> = Timer::new(handler, next_n_us_timer_jiffies(total_sleep_time_us)); in nanosleep()
|
H A D | timer.rs | 34 pub static ref TIMER_LIST: SpinLock<Vec<(u64, Arc<Timer>)>> = SpinLock::new(Vec::new()); 107 pub struct Timer { struct 111 impl Timer { impl 120 let result: Arc<Timer> = Arc::new(Timer { in new() 214 self_ref: Weak<Timer>, 318 let timer = Timer::new( in schedule_timeout()
|
H A D | clocksource.rs | 32 timer::{clock, Timer, TimerFunction}, 175 let wd_timer = Timer::new(wd_timer_func, self.timer_expires); in clocksource_start_watchdog() 912 let watchdog_timer = Timer::new(watchdog_func, cs_watchdog.timer_expires); in create_new_watchdog_timer_function()
|
/DragonOS/kernel/src/process/ |
H A D | timer.rs | 7 use crate::time::timer::{clock, Jiffies, Timer, TimerFunction}; 17 pub timer: Arc<Timer>, 40 timer: Timer::new(timer_func, expired_jiffies), in new() 133 let mut info = SigInfo::new(sig, 0, SigCode::Timer, SigType::Alarm(self.pid)); in run()
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A 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()
|
H A D | apic_timer.rs | 242 let lvt = LVT::new(LVTRegister::Timer, data).unwrap(); in setup_lvt() 258 let mut lvt = CurrentApic.read_lvt(LVTRegister::Timer); in start_current() 264 let mut lvt = CurrentApic.read_lvt(LVTRegister::Timer); in stop_current()
|
H A D | x2apic.rs | 107 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt()
|
H A D | xapic.rs | 104 LVTRegister::Timer => XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_TIMER, in from() 314 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt()
|
/DragonOS/kernel/src/driver/video/ |
H A D | mod.rs | 13 time::timer::{Timer, TimerFunction}, 57 let timer = Timer::new(VideoRefreshExecutor::new(), 1); in run_video_refresh() 247 let timer = Timer::new(VideoRefreshExecutor::new(), REFRESH_INTERVAL); in run()
|
/DragonOS/kernel/src/arch/riscv64/driver/ |
H A D | sbi.rs | 88 if sbi_rt::probe_extension(sbi_rt::Timer).is_available() { in probe_extensions()
|
/DragonOS/kernel/src/arch/riscv64/ipc/ |
H A D | signal.rs | 182 Timer = -2, enumerator 199 -2 => Self::Timer, in from_i32()
|
/DragonOS/kernel/src/net/ |
H A D | net_core.rs | 12 timer::{next_n_ms_timer_jiffies, Timer, TimerFunction}, 33 let timer = Timer::new(Box::new(NetWorkPollFunc), next_time); in run()
|
/DragonOS/kernel/src/arch/x86_64/ipc/ |
H A D | signal.rs | 199 Timer = -2, enumerator 216 -2 => Self::Timer, in from_i32()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | mod.rs | 29 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper}, 491 let inner = Timer::new(handle, jiffies); in do_epoll_wait()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 25 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper}, 278 let wake_up = Timer::new(wakeup_helper, jiffies); in futex_wait()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.10.md | 90 - feat(driver/acpi_pm): Implement ACPI PM Timer (#772) 290 feat(driver/acpi_pm): Implement ACPI PM Timer (#772) 292 * feat: Implement ACPI PM Timer
|