Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs208 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in read()
226 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in write()
244 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in lseek()
317 let file: &mut File = match current_pcb().get_file_mut_by_fd(fd) { in getdents()
/DragonOS-0.1.8/kernel/src/process/
Dprocess.rs235 pub fn get_file_mut_by_fd(&self, fd: i32) -> Option<&mut File> { in get_file_mut_by_fd() method
305 let f = self.get_file_mut_by_fd(fd)?; in get_socket()