Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/process/
Dprocess.rs145 let old_fds: &mut FileDescriptorVec = if let Some(o_fds) = FileDescriptorVec::from_pcb(from) in copy_files()
180 if let Some(f) = FileDescriptorVec::from_pcb(current_pcb()) { in alloc_fd()
185 let r: Option<&mut FileDescriptorVec> = FileDescriptorVec::from_pcb(current_pcb()); in alloc_fd()
215 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_mut_by_fd()
229 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_ref_by_fd()
241 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in drop_fd()
/DragonOS-0.1.5/kernel/src/filesystem/vfs/
Dfile.rs313 pub fn from_pcb(pcb: &'static process_control_block) -> Option<&'static mut FileDescriptorVec> { in from_pcb() method