Home
last modified time | relevance | path

Searched refs:TimerFunction (Results 1 – 6 of 6) sorted by relevance

/DragonOS/docs/kernel/sched/
H A Dkernel_timer.md9 …)`,timer_func为定时器要执行的操作,expire_jiffies为定时器的结束时间,`timer_func`参数的类型是实现了`TimerFunction`特性的结构体。在创建定时器后…
15   定时器要执行的函数应实现`TimerFunction`特性,其定义如下:
19 pub trait TimerFunction: Send + Sync {
24   一种典型的实现方式是:新建一个零长的结构体,实现`TimerFunction`特性,然后在`run`函数中实现定时器要执行的操作。
32 pub fn new(timer_func: Box<dyn TimerFunction>, expire_jiffies: u64) -> Arc<Self>
37 - timer_func:定时器需要执行的函数对应的结构体,其实现了`TimerFunction`特性
151 /// 为结构体实现TimerFunction特性
152 impl TimerFunction for TimerExample {
153 /// TimerFunction特性中的函数run
/DragonOS/kernel/src/process/
H A Dtimer.rs7 use crate::time::timer::{clock, Jiffies, Timer, TimerFunction};
36 pub fn new(timer_func: Box<dyn TimerFunction>, second: u64) -> Self { in new() argument
118 impl TimerFunction for AlarmTimerFunc {
/DragonOS/kernel/src/time/
H A Dtimer.rs38 pub trait TimerFunction: Send + Sync + Debug { trait
99 impl TimerFunction for WakeUpHelper {
119 pub fn new(timer_func: Box<dyn TimerFunction>, expire_jiffies: u64) -> Arc<Self> { in new() argument
212 pub timer_func: Option<Box<dyn TimerFunction>>,
H A Dclocksource.rs32 timer::{clock, Timer, TimerFunction},
194 impl TimerFunction for WatchdogTimerFunc {
/DragonOS/kernel/src/net/
H A Dnet_core.rs12 timer::{next_n_ms_timer_jiffies, Timer, TimerFunction},
29 impl TimerFunction for NetWorkPollFunc {
/DragonOS/kernel/src/driver/video/
H A Dmod.rs13 time::timer::{Timer, TimerFunction},
234 impl TimerFunction for VideoRefreshExecutor {