Lines Matching refs:FileDescriptorVec
12 file::{File, FileDescriptorVec, FileMode},
129 let fd_vec: &mut FileDescriptorVec = Box::leak(FileDescriptorVec::new()); in init_files()
130 self.fds = fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in init_files()
154 let old_fds: &mut FileDescriptorVec = if let Some(o_fds) = FileDescriptorVec::from_pcb(from) in copy_files()
162 let new_fd_vec: &mut FileDescriptorVec = Box::leak(old_fds.clone()); in copy_files()
164 self.fds = new_fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in copy_files()
175 let old_fds: Box<FileDescriptorVec> = in exit_files()
176 unsafe { Box::from_raw(self.fds as *mut FileDescriptorVec) }; in exit_files()
191 let fds: &mut FileDescriptorVec = in alloc_fd()
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()
236 if !FileDescriptorVec::validate_fd(fd) { in get_file_mut_by_fd()
239 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_mut_by_fd()
250 if !FileDescriptorVec::validate_fd(fd) { in get_file_ref_by_fd()
253 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_ref_by_fd()
262 if !FileDescriptorVec::validate_fd(fd) { in drop_fd()
265 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in drop_fd()