Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/filesystem/vfs/
Dfile.rs539 fds: Vec<Option<Arc<SpinLock<File>>>>, field
551 return FileDescriptorVec { fds: data }; in new()
560 if let Some(file) = &self.fds[i] { in clone()
562 res.fds[i] = Some(Arc::new(SpinLock::new(file))); in clone()
598 let x = &mut self.fds[new_fd as usize]; in alloc_fd()
608 if self.fds[i].is_none() { in alloc_fd()
609 self.fds[i] = Some(Arc::new(SpinLock::new(file))); in alloc_fd()
626 return self.fds[fd as usize].clone(); in get_file_by_fd()
643 let file = self.fds[fd as usize].take().unwrap(); in drop_fd()
656 if let Some(file) = &self.fds[i] { in close_on_exec()
[all …]
/DragonOS-0.1.9/kernel/src/net/
Dsyscall.rs72 fds: &mut [i32], in socketpair()
95 fds[0] = alloc_fd(socket0)?; in socketpair()
96 fds[1] = alloc_fd(socket1)?; in socketpair()
/DragonOS-0.1.9/kernel/src/net/event_poll/
Dmod.rs195 let fds = epoll.ep_items.keys().cloned().collect::<Vec<_>>(); in close() localVariable
198 for fd in fds { in close()
/DragonOS-0.1.9/kernel/src/syscall/
Dmod.rs850 let fds = user_buffer_writer.buffer::<i32>(0)?; in handle() localVariable
851 Self::socketpair(args[0], args[1], args[2], fds) in handle()