Searched refs:KernelThreadClosure (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/process/ |
H A D | kthread.rs | 96 pub enum KernelThreadClosure { enum 110 unsafe impl Send for KernelThreadClosure {} implementation 111 unsafe impl Sync for KernelThreadClosure {} implementation 113 impl KernelThreadClosure { impl 129 closure: SpinLock<Option<Box<KernelThreadClosure>>>, 152 pub fn new(func: KernelThreadClosure, name: String) -> Arc<Self> { in new() argument 200 pub fn take_closure(&self) -> Option<Box<KernelThreadClosure>> { in take_closure() argument 272 KernelThreadClosure::EmptyClosure((Box::new(initial_kernel_thread), ())), in init_stage1() 310 let closure = KernelThreadClosure::EmptyClosure((Box::new(Self::kthread_daemon), ())); in init_stage2() 339 pub fn create(func: KernelThreadClosure, name: String) -> Option<Arc<ProcessControlBlock>> { in create() argument [all …]
|
/DragonOS/kernel/src/driver/tty/ |
H A D | kthread.rs | 11 kthread::{KernelThreadClosure, KernelThreadMechanism}, 24 KernelThreadClosure::StaticEmptyClosure((&(tty_refresh_thread as fn() -> i32), ())); in tty_flush_thread_init()
|
/DragonOS/kernel/src/time/ |
H A D | clocksource.rs | 24 kthread::{KernelThreadClosure, KernelThreadMechanism}, 1033 let closure = KernelThreadClosure::StaticEmptyClosure(( in init_watchdog_kthread()
|
/DragonOS/kernel/src/mm/ |
H A D | page.rs | 122 let closure = crate::process::kthread::KernelThreadClosure::StaticEmptyClosure(( in page_reclaimer_thread_init()
|