Lines Matching refs:current_pcb
10 arch::asm::current::current_pcb,
61 if current_pcb() as *mut process_control_block as usize == _pcb as usize { in process_try_to_wake_up()
192 if let Some(f) = FileDescriptorVec::from_pcb(current_pcb()) { in alloc_fd()
197 let r: Option<&mut FileDescriptorVec> = FileDescriptorVec::from_pcb(current_pcb()); in alloc_fd()
239 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_mut_by_fd()
253 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_ref_by_fd()
265 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in drop_fd()
353 if current_pcb().pid != 1 { in init_stdio()
369 assert_eq!(current_pcb().alloc_fd(stdin, None).unwrap(), 0); in init_stdio()
370 assert_eq!(current_pcb().alloc_fd(stdout, None).unwrap(), 1); in init_stdio()
371 assert_eq!(current_pcb().alloc_fd(stderr, None).unwrap(), 2); in init_stdio()