Home
last modified time | relevance | path

Searched refs:try_clone (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs501 pub fn try_clone(&self) -> Option<File> { in try_clone() method
681 if let Some(file) = file.try_clone() { in clone()
H A Dsyscall.rs1059 let new_file = old_file.try_clone().ok_or(SystemError::EBADF)?; in dup()
1136 let new_file = old_file.try_clone().ok_or(SystemError::EBADF)?; in do_dup3()
/DragonOS/kernel/src/process/
H A Dfork.rs256 let new_address_space = old_address_space.write_irqsave().try_clone().unwrap_or_else(|e| { in copy_mm()
/DragonOS/kernel/src/mm/
H A Ducontext.rs161 pub fn try_clone(&mut self) -> Result<Arc<AddressSpace>, SystemError> { in try_clone() method