Home
last modified time | relevance | path

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

/DragonOS/kernel/src/bpf/map/
H A Darray_map.rs223 fds: ArrayMapData, field
229 .field("fds", &self.fds) in fmt()
240 let fds = ArrayMapData::new(4, num_cpus); in new() localVariable
241 Ok(PerfEventArrayMap { fds }) in new()
248 let value = self.fds.index(cpu_id); in lookup_elem()
254 let old_value = self.fds.index_mut(cpu_id); in update_elem()
260 self.fds.index_mut(cpu_id).copy_from_slice(&[0; 4]); in delete_elem()
268 let value = self.fds.index(i); in for_each_elem()
281 Ok(self.fds.data.as_ptr()) in first_value_ptr()
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs655 fds: Vec<Option<Arc<File>>>, field
671 return FileDescriptorVec { fds: data }; in new()
680 if let Some(file) = &self.fds[i] { in clone()
682 res.fds[i] = Some(Arc::new(file)); in clone()
692 for fd in &self.fds { in fd_open_count()
723 let x = &mut self.fds[new_fd as usize]; in alloc_fd()
733 if self.fds[i].is_none() { in alloc_fd()
734 self.fds[i] = Some(Arc::new(file)); in alloc_fd()
751 self.fds[fd as usize].clone() in get_file_by_fd()
763 let file = self.fds[fd as usize].take().unwrap(); in drop_fd()
[all …]
/DragonOS/kernel/src/net/
H A Dsyscall.rs68 fds: &mut [i32], in socketpair()
91 fds[0] = fd_table_guard.alloc_fd(File::new(inode0, FileMode::O_RDWR)?, None)?; in socketpair()
92 fds[1] = fd_table_guard.alloc_fd(File::new(inode1, FileMode::O_RDWR)?, None)?; in socketpair()
/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs206 let fds = epoll.ep_items.keys().cloned().collect::<Vec<_>>(); in close() localVariable
209 for fd in fds { in close()
/DragonOS/kernel/src/syscall/
H A Dmod.rs867 let fds = user_buffer_writer.buffer::<i32>(0)?; in handle() localVariable
868 Self::socketpair(args[0], args[1], args[2], fds) in handle()