Lines Matching refs:pcb
60 pub fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue()
65 if pcb.pid == 0 { in enqueue()
70 self.queue.insert(pcb.virtual_runtime, pcb); in enqueue()
127 result.cpu_queue[0].idle_pcb = unsafe { &mut initial_proc_union.pcb }; in new()
160 pub fn enqueue_reset_vruntime(&mut self, pcb: &'static mut process_control_block) { in enqueue_reset_vruntime()
161 let cpu_queue = &mut self.cpu_queue[pcb.cpu_id as usize]; in enqueue_reset_vruntime()
163 pcb.virtual_runtime = cpu_queue.min_vruntime().unwrap(); in enqueue_reset_vruntime()
166 cpu_queue.enqueue(pcb); in enqueue_reset_vruntime()
170 pub fn set_cpu_idle(&mut self, cpu_id: usize, pcb: *mut process_control_block) { in set_cpu_idle()
172 self.cpu_queue[cpu_id].idle_pcb = pcb; in set_cpu_idle()
232 fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue()
233 let cpu_queue = &mut self.cpu_queue[pcb.cpu_id as usize]; in enqueue()
234 cpu_queue.enqueue(pcb); in enqueue()