Home
last modified time | relevance | path

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

/DragonOS-0.1.9/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.9/kernel/src/time/
Dtimer.rs32 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()
Dsleep.rs15 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()
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.9/kernel/src/arch/x86_64/driver/apic/
Dmod.rs98 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()
Dapic_timer.rs240 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()
Dx2apic.rs106 self.set_lvt(LVT::new(LVTRegister::Timer, LVT::MASKED).unwrap()); in mask_all_lvt()
Dxapic.rs103 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/
Dmod.rs17 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/
Dnet_core.rs10 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/
Dsbi.rs86 if sbi_rt::probe_extension(sbi_rt::Timer).is_available() { in probe_extensions()
/DragonOS-0.1.9/kernel/src/arch/riscv64/ipc/
Dsignal.rs181 Timer = -2, enumerator
198 -2 => Self::Timer, in from_i32()
/DragonOS-0.1.9/kernel/src/libs/futex/
Dfutex.rs18 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/
Dsignal.rs199 Timer = -2, enumerator
216 -2 => Self::Timer, in from_i32()
/DragonOS-0.1.9/kernel/src/net/event_poll/
Dmod.rs28 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper},
480 let inner = Timer::new(handle, jiffies); in do_epoll_wait()