/DragonOS/kernel/src/process/ |
H A D | timer.rs | 7 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 D | mod.rs | 66 use timer::AlarmTimer; 82 pub mod timer; module
|
/DragonOS/kernel/src/time/ |
H A D | tick_common.rs | 5 time::timer::run_local_timer, 8 use super::timer::update_timer_jiffies;
|
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() localVariable 53 timer.activate(); in nanosleep()
|
H A D | timer.rs | 177 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 D | syscall.rs | 9 process::{timer::AlarmTimer, ProcessManager}, 102 return Ok(super::timer::clock() as usize); in clock()
|
H A D | jiffies.rs | 12 timer::clock,
|
H A D | mod.rs | 20 pub mod timer; module
|
H A D | clocksource.rs | 32 timer::{clock, Timer, TimerFunction},
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 25 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 D | mod.rs | 13 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 D | kernel_timer.md | 165 let timer: Arc<Timer> = Timer::new(timer_example, 1); 167 timer.activate();
|
/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() localVariable 34 timer.activate(); in run()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | mod.rs | 29 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 D | completion.rs | 7 time::timer::schedule_timeout,
|
H A D | mod.rs | 37 time::{clocksource::HZ, timer::clock},
|
H A D | fair.rs | 15 use crate::time::timer::clock;
|
/DragonOS/kernel/src/init/ |
H A D | init.rs | 28 clocksource::clocksource_boot_finish, timekeeping::timekeeping_init, timer::timer_init,
|
/DragonOS/kernel/src/driver/clocksource/ |
H A D | timer_riscv.rs | 25 clocksource::HZ, tick_common::tick_handle_periodic, timer::try_raise_timer_softirq,
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.6.md | 42 - timer: 重构了系统定时器 (#223) 141 * 修改timer的clock()
|
H A D | V0.1.10.md | 65 - 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 D | V0.1.9.md | 291 这是该功能的第一个PR。由于还需要实现timer驱动才能测试,因此该功能将会通过2~3个PR来完成。 1122 增加getrusage,并把apic timer的频率调整为系统HZ (#435)
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | hpet.rs | 181 fn timer(&self, index: u8) -> Option<(RwLockReadGuard<InnerHpet>, &HpetTimerRegisters)> { in timer() method
|
/DragonOS/kernel/src/exception/ |
H A D | softirq.rs | 22 time::timer::clock,
|