Lines Matching refs:ProcessManager
21 process::{ProcessManager, ProcessState},
266 assert!(ProcessManager::current_pcb().pid() == Pid::new(0)); in init_stage1()
279 ProcessManager::current_pcb() in init_stage1()
293 ProcessManager::current_pcb() in init_stage1()
303 assert!(ProcessManager::current_pcb() in init_stage2()
319 let pcb = ProcessManager::find(kthreadd_pid).unwrap(); in init_stage2()
320 ProcessManager::wakeup(&pcb).expect("Failed to wakeup kthread daemon"); in init_stage2()
347 ProcessManager::wakeup(unsafe { KTHREAD_DAEMON_PCB.as_ref().unwrap() }) in create()
368 ProcessManager::wakeup(&pcb) in create_and_run()
402 ProcessManager::wakeup(pcb).ok(); in stop()
451 let current_pcb = ProcessManager::current_pcb(); in kthread_daemon()
481 ProcessManager::mark_sleep(true).ok(); in kthread_daemon()
499 info.set_create_ok(ProcessManager::current_pcb()); in kernel_thread_bootstrap_stage2()
506 ProcessManager::mark_sleep(true).expect("Failed to mark sleep"); in kernel_thread_bootstrap_stage2()
513 if !KernelThreadMechanism::should_stop(&ProcessManager::current_pcb()) { in kernel_thread_bootstrap_stage2()
517 ProcessManager::exit(retval as usize); in kernel_thread_bootstrap_stage2()