Lines Matching refs:current_pcb
9 arch::{asm::current::current_pcb, fpu::FpState},
59 if current_pcb() as *mut process_control_block as usize == _pcb as usize { in process_try_to_wake_up()
190 if let Some(f) = FileDescriptorVec::from_pcb(current_pcb()) { in alloc_fd()
195 let r: Option<&mut FileDescriptorVec> = FileDescriptorVec::from_pcb(current_pcb()); in alloc_fd()
237 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_mut_by_fd()
251 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_ref_by_fd()
263 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in drop_fd()
322 let r = current_pcb().init_files(); in process_init_files()
339 let r = current_pcb().copy_files(clone_flags, from); in process_copy_files()
367 if current_pcb().fp_state == null_mut() { in rs_dup_fpstate()
371 let state = current_pcb().fp_state as usize as *mut FpState; in rs_dup_fpstate()
405 if current_pcb().pid != 1 { in init_stdio()
421 assert_eq!(current_pcb().alloc_fd(stdin, None).unwrap(), 0); in init_stdio()
422 assert_eq!(current_pcb().alloc_fd(stdout, None).unwrap(), 1); in init_stdio()
423 assert_eq!(current_pcb().alloc_fd(stderr, None).unwrap(), 2); in init_stdio()