Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 24 of 24) sorted by relevance

/DragonOS/kernel/src/process/
H A Dtimer.rs7 use crate::time::timer::{clock, Jiffies, Timer, TimerFunction};
17 pub timer: Arc<Timer>, field
40 timer: Timer::new(timer_func, expired_jiffies), in new()
47 let timer = self.timer.clone(); in activate() localVariable
48 timer.activate(); in activate()
74 self.timer.timeout() in timeout()
79 if self.timer.timeout() { in remain()
98 self.timer.cancel(); in cancel()
H A Dmod.rs66 use timer::AlarmTimer;
82 pub mod timer; module
/DragonOS/kernel/src/time/
H A Dtick_common.rs5 time::timer::run_local_timer,
8 use super::timer::update_timer_jiffies;
H A Dsleep.rs15 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() localVariable
53 timer.activate(); in nanosleep()
H A Dtimer.rs177 let mut timer = self.inner(); in run() localVariable
178 timer.triggered = true; in run()
179 let func = timer.timer_func.take(); in run()
180 drop(timer); in run()
318 let timer = Timer::new( in schedule_timeout() localVariable
323 timer.activate(); in schedule_timeout()
H A Dsyscall.rs9 process::{timer::AlarmTimer, ProcessManager},
102 return Ok(super::timer::clock() as usize); in clock()
H A Djiffies.rs12 timer::clock,
H A Dmod.rs20 pub mod timer; module
H A Dclocksource.rs32 timer::{clock, Timer, TimerFunction},
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs25 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper},
270 let mut timer = None; in futex_wait() localVariable
281 timer = Some(wake_up); in futex_wait()
307 if let Some(timer) = timer { in futex_wait()
308 timer.cancel(); in futex_wait()
317 if let Some(timer) = timer { in futex_wait()
318 timer.cancel(); in futex_wait()
325 if timer.is_some() && timer.clone().unwrap().timeout() { in futex_wait()
340 if let Some(timer) = timer { in futex_wait()
341 if !timer.timeout() { in futex_wait()
[all …]
/DragonOS/kernel/src/driver/video/
H A Dmod.rs13 time::timer::{Timer, TimerFunction},
57 let timer = Timer::new(VideoRefreshExecutor::new(), 1); in run_video_refresh() localVariable
59 timer.activate(); in run_video_refresh()
247 let timer = Timer::new(VideoRefreshExecutor::new(), REFRESH_INTERVAL); in run() localVariable
249 timer.activate(); in run()
/DragonOS/docs/kernel/sched/
H A Dkernel_timer.md165 let timer: Arc<Timer> = Timer::new(timer_example, 1);
167 timer.activate();
/DragonOS/kernel/src/net/
H A Dnet_core.rs12 timer::{next_n_ms_timer_jiffies, Timer, TimerFunction},
33 let timer = Timer::new(Box::new(NetWorkPollFunc), next_time); in run() localVariable
34 timer.activate(); in run()
/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs29 timer::{next_n_us_timer_jiffies, Timer, WakeUpHelper},
485 let mut timer = None; in do_epoll_wait() localVariable
493 timer = Some(inner); in do_epoll_wait()
501 if let Some(timer) = timer { in do_epoll_wait()
502 if timer.as_ref().timeout() { in do_epoll_wait()
507 timer.cancel(); in do_epoll_wait()
/DragonOS/kernel/src/sched/
H A Dcompletion.rs7 time::timer::schedule_timeout,
H A Dmod.rs37 time::{clocksource::HZ, timer::clock},
H A Dfair.rs15 use crate::time::timer::clock;
/DragonOS/kernel/src/init/
H A Dinit.rs28 clocksource::clocksource_boot_finish, timekeeping::timekeeping_init, timer::timer_init,
/DragonOS/kernel/src/driver/clocksource/
H A Dtimer_riscv.rs25 clocksource::HZ, tick_common::tick_handle_periodic, timer::try_raise_timer_softirq,
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.6.md42 - timer: 重构了系统定时器 (#223)
141 * 修改timer的clock()
H A DV0.1.10.md65 - feat(driver/riscv): 初始化riscv-sbi-timer (#716)
94 - fix: (riscv/timer): 修复riscv下没有更新墙上时钟以及没有处理软中断的bug (#783)
254 fix: (riscv/timer): 修复riscv下没有更新墙上时钟以及没有处理软中断的bug (#783)
528 初始化riscv-sbi-timer (#716)
H A DV0.1.9.md291 这是该功能的第一个PR。由于还需要实现timer驱动才能测试,因此该功能将会通过2~3个PR来完成。
1122 增加getrusage,并把apic timer的频率调整为系统HZ (#435)
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dhpet.rs181 fn timer(&self, index: u8) -> Option<(RwLockReadGuard<InnerHpet>, &HpetTimerRegisters)> { in timer() method
/DragonOS/kernel/src/exception/
H A Dsoftirq.rs22 time::timer::clock,