Searched refs:KernelThreadMechanism (Results 1 – 9 of 9) sorted by relevance
/DragonOS/docs/kernel/process_management/ |
H A D | kthread.md | 9   内核线程的创建是通过调用`KernelThreadMechanism::create()`或者`KernelThreadMechanism::create_and_run()… 12   当内核其他模块想要停止一个内核线程的时候,可以调用`KernelThreadMechanism::stop()`函数,等待内核线程的退出,然后获得返回值并清理内核线程的pcb。 14   内核线程应当经常检查`KernelThreadMechanism::should_stop()`的结果,以确定其是否要退出。当检测到需要退出时,内核线程返回一个返回码,即可退…
|
/DragonOS/kernel/src/arch/x86_64/process/ |
H A D | kthread.rs | 13 kthread::{kernel_thread_bootstrap_stage2, KernelThreadCreateInfo, KernelThreadMechanism}, 18 impl KernelThreadMechanism { implementation
|
/DragonOS/kernel/src/driver/tty/ |
H A D | kthread.rs | 11 kthread::{KernelThreadClosure, KernelThreadMechanism}, 25 let pcb = KernelThreadMechanism::create_and_run(closure, "tty_refresh".to_string()) in tty_flush_thread_init()
|
/DragonOS/kernel/src/arch/riscv64/process/ |
H A D | kthread.rs | 7 kthread::{kernel_thread_bootstrap_stage2, KernelThreadCreateInfo, KernelThreadMechanism}, 17 impl KernelThreadMechanism { impl
|
/DragonOS/kernel/src/process/ |
H A D | kthread.rs | 262 pub struct KernelThreadMechanism; struct 264 impl KernelThreadMechanism { impl 287 KernelThreadMechanism::__inner_create( in init_stage1() 513 if !KernelThreadMechanism::should_stop(&ProcessManager::current_pcb()) { in kernel_thread_bootstrap_stage2() 525 KernelThreadMechanism::init_stage1(); in kthread_init()
|
/DragonOS/kernel/src/init/ |
H A D | initial_kthread.rs | 16 exec::ProcInitInfo, kthread::KernelThreadMechanism, stdio::stdio_init, ProcessFlags, 37 KernelThreadMechanism::init_stage2(); in kernel_init()
|
/DragonOS/kernel/src/time/ |
H A D | clocksource.rs | 24 kthread::{KernelThreadClosure, KernelThreadMechanism}, 952 if KernelThreadMechanism::should_stop(&ProcessManager::current_pcb()) { in clocksource_watchdog_kthread() 1037 let pcb = KernelThreadMechanism::create_and_run(closure, "clocksource watchdog".to_string()) in init_watchdog_kthread()
|
/DragonOS/kernel/src/exception/ |
H A D | manage.rs | 15 process::{kthread::KernelThreadMechanism, ProcessManager}, 176 KernelThreadMechanism::stop(&thread_pcb).ok(); in inner_setup_irq() 183 KernelThreadMechanism::stop(&thread_pcb).ok(); in inner_setup_irq()
|
/DragonOS/kernel/src/mm/ |
H A D | page.rs | 126 let pcb = crate::process::kthread::KernelThreadMechanism::create_and_run( in page_reclaimer_thread_init()
|