Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/process/
Dprocess.rs154 let old_fds: &mut FileDescriptorVec = if let Some(o_fds) = FileDescriptorVec::from_pcb(from) in copy_files()
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()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs378 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in dup()
413 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in dup2()
467 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
478 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
492 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
511 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
523 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
563 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in ftruncate()
Dfile.rs424 pub fn from_pcb(pcb: &'static process_control_block) -> Option<&'static mut FileDescriptorVec> { in from_pcb() method