Home
last modified time | relevance | path

Searched refs:closure (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/driver/tty/
H A Dkthread.rs23 let closure = in tty_flush_thread_init() localVariable
25 let pcb = KernelThreadMechanism::create_and_run(closure, "tty_refresh".to_string()) in tty_flush_thread_init()
/DragonOS/kernel/src/process/
H A Dkthread.rs129 closure: SpinLock<Option<Box<KernelThreadClosure>>>, field
154 closure: SpinLock::new(Some(Box::new(func))), in new()
201 return self.closure.lock().take(); in take_closure()
310 let closure = KernelThreadClosure::EmptyClosure((Box::new(Self::kthread_daemon), ())); in init_stage2() localVariable
311 let info = KernelThreadCreateInfo::new(closure, "kthreadd".to_string()); in init_stage2()
498 let closure: Box<KernelThreadClosure> = info.take_closure().unwrap(); in kernel_thread_bootstrap_stage2() localVariable
514 retval = closure.run(); in kernel_thread_bootstrap_stage2()
/DragonOS/kernel/src/time/
H A Dclocksource.rs1033 let closure = KernelThreadClosure::StaticEmptyClosure(( in init_watchdog_kthread() localVariable
1037 let pcb = KernelThreadMechanism::create_and_run(closure, "clocksource watchdog".to_string()) in init_watchdog_kthread()
/DragonOS/kernel/src/mm/
H A Dpage.rs122 let closure = crate::process::kthread::KernelThreadClosure::StaticEmptyClosure(( in page_reclaimer_thread_init() localVariable
127 closure, in page_reclaimer_thread_init()