Searched refs:get_file_mut_by_fd (Results 1 – 2 of 2) sorted by relevance
208 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()
235 pub fn get_file_mut_by_fd(&self, fd: i32) -> Option<&mut File> { in get_file_mut_by_fd() method305 let f = self.get_file_mut_by_fd(fd)?; in get_socket()