Lines Matching refs:pid
78 pub mod pid; module
177 return ProcessManager::current_pcb().pid(); in current_pid()
205 pub fn find(pid: Pid) -> Option<Arc<ProcessControlBlock>> { in find()
206 return ALL_PROCESS.lock_irqsave().as_ref()?.get(&pid).cloned(); in find()
223 .insert(pcb.pid(), pcb.clone()); in add_pcb()
355 if current.pid() != Pid(1) { in exit_notify()
366 let r = Syscall::kill(parent_pcb.pid(), Signal::SIGCHLD as i32); in exit_notify()
370 current.pid(), in exit_notify()
371 parent_pcb.pid() in exit_notify()
388 let pid = pcb.pid(); in exit() localVariable
443 pub unsafe fn release(pid: Pid) { in release()
444 let pcb = ProcessManager::find(pid); in release()
460 ALL_PROCESS.lock_irqsave().as_mut().unwrap().remove(&pid); in release()
503 if pcb.pid() == cpu_rq(cpu_id.data() as usize).current().pid() { in kick()
614 pid: Pid, field
708 let (pid, ppid, cwd, cred) = if is_idle { in do_create_pcb()
712 let ppid = ProcessManager::current_pcb().pid(); in do_create_pcb()
731 pid, in do_create_pcb()
732 tgid: pid, in do_create_pcb()
783 if pcb.pid() > Pid(1) { in do_create_pcb()
786 children.push(pcb.pid()); in do_create_pcb()
892 pub fn pid(&self) -> Pid { in pid() method
893 return self.pid; in pid()
955 childen_guard.iter().for_each(|pid| { in adopt_childen()
956 init_childen_guard.push(*pid); in adopt_childen()
1056 procfs_unregister_pid(self.pid()) in drop()
1062 .retain(|pid| *pid != self.pid()); in drop()