Searched refs:SoftirqVec (Results 1 – 3 of 3) sorted by relevance
9   当我们需要注册一个新的软中断时,需要为软中断处理程序实现`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 {
97 pub trait SoftirqVec: Send + Sync + Debug { trait103 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
19 softirq::{softirq_vectors, SoftirqNumber, SoftirqVec},242 impl SoftirqVec for DoTimerSoftirq {