Home
last modified time | relevance | path

Searched refs:from_pcb (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.7/kernel/src/process/
Dprocess.rs152 let old_fds: &mut FileDescriptorVec = if let Some(o_fds) = FileDescriptorVec::from_pcb(from) in copy_files()
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()
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dsyscall.rs352 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in do_dup()
388 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in do_dup2()
Dfile.rs359 pub fn from_pcb(pcb: &'static process_control_block) -> Option<&'static mut FileDescriptorVec> { in from_pcb() method