Lines Matching defs:ProcessControlBlock
205 pub fn find(pid: Pid) -> Option<Arc<ProcessControlBlock>> { in find()
218 pub fn add_pcb(pcb: Arc<ProcessControlBlock>) { in add_pcb()
498 pub fn kick(pcb: &Arc<ProcessControlBlock>) { in kick()
612 pub struct ProcessControlBlock { struct
614 pid: Pid,
616 tgid: Pid,
618 thread_pid: Arc<RwLock<PidStrcut>>,
619 basic: RwLock<ProcessBasicInfo>,
643 parent_pcb: RwLock<Weak<ProcessControlBlock>>, argument
645 real_parent_pcb: RwLock<Weak<ProcessControlBlock>>, argument
648 children: RwLock<Vec<Pid>>,
672 impl ProcessControlBlock { argument
1055 impl Drop for ProcessControlBlock { implementation
1094 pub fn group_leader(&self) -> Option<Arc<ProcessControlBlock>> { in group_leader()
1448 let p: *const ProcessControlBlock = Weak::into_raw(pcb); in set_pcb() constant
1449 let stack_bottom_ptr = self.start_address().data() as *mut *const ProcessControlBlock; in set_pcb() constant
1470 let stack_bottom_ptr = self.start_address().data() as *mut *const ProcessControlBlock; in clear_pcb() constant
1485 pub unsafe fn pcb(&self) -> Option<Arc<ProcessControlBlock>> { in pcb()
1487 let p = self.stack.as_ref().unwrap().as_ptr() as *const *const ProcessControlBlock; in pcb() constant
1504 let ptr = self.stack.as_ref().unwrap().as_ptr() as *const *const ProcessControlBlock; in drop() constant