Home
last modified time | relevance | path

Searched refs:SoftirqVec (Results 1 – 3 of 3) sorted by relevance

/DragonOS/docs/kernel/core_api/
H A Dsoftirq.md9   当我们需要注册一个新的软中断时,需要为软中断处理程序实现`SoftirqVec`特征,然后调用`register_softirq`函数,将软中断处理程序注册到软中断机制内。
26 ### 3.1. SoftirqVec特征
29 pub trait SoftirqVec: Send + Sync + Debug {
42 handler: Arc<dyn SoftirqVec>,
50 - hanlder:中断函数对应的结构体,需要指向实现了`SoftirqVec`特征的结构体变量
113 impl SoftirqVec for SoftirqExample {
/DragonOS/kernel/src/exception/
H A Dsoftirq.rs97 pub trait SoftirqVec: Send + Sync + Debug { trait
103 table: RwLock<[Option<Arc<dyn SoftirqVec>>; MAX_SOFTIRQ_NUM as usize]>,
111 let mut data: [MaybeUninit<Option<Arc<dyn SoftirqVec>>>; MAX_SOFTIRQ_NUM as usize] = in new()
118 let data: [Option<Arc<dyn SoftirqVec>>; MAX_SOFTIRQ_NUM as usize] = unsafe { in new()
119 mem::transmute::<_, [Option<Arc<dyn SoftirqVec>>; MAX_SOFTIRQ_NUM as usize]>(data) in new()
144 handler: Arc<dyn SoftirqVec>, in register_softirq() argument
/DragonOS/kernel/src/time/
H A Dtimer.rs19 softirq::{softirq_vectors, SoftirqNumber, SoftirqVec},
242 impl SoftirqVec for DoTimerSoftirq {