Searched refs:FileDescriptorVec (Results 1 – 5 of 5) sorted by relevance
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | file.rs | 653 pub struct FileDescriptorVec { struct 657 impl Default for FileDescriptorVec { implementation 662 impl FileDescriptorVec { implementation 666 pub fn new() -> FileDescriptorVec { in new() 667 let mut data = Vec::with_capacity(FileDescriptorVec::PROCESS_MAX_FD); in new() 668 data.resize(FileDescriptorVec::PROCESS_MAX_FD, None); in new() 671 return FileDescriptorVec { fds: data }; in new() 677 pub fn clone(&self) -> FileDescriptorVec { in clone() argument 678 let mut res = FileDescriptorVec::new(); in clone() 679 for i in 0..FileDescriptorVec::PROCESS_MAX_FD { in clone() [all …]
|
H A D | syscall.rs | 13 filesystem::vfs::{core as Vcore, file::FileDescriptorVec}, 777 if fd < 0 || fd as usize > FileDescriptorVec::PROCESS_MAX_FD { in getdents() 1104 fd_table_guard: &mut RwLockWriteGuard<'_, FileDescriptorVec>, in do_dup2() argument 1113 fd_table_guard: &mut RwLockWriteGuard<'_, FileDescriptorVec>, in do_dup3() argument 1116 if !(FileDescriptorVec::validate_fd(oldfd) && FileDescriptorVec::validate_fd(newfd)) { in do_dup3() 1161 if arg < 0 || arg as usize >= FileDescriptorVec::PROCESS_MAX_FD { in fcntl() 1165 for i in arg..FileDescriptorVec::PROCESS_MAX_FD { in fcntl()
|
/DragonOS/kernel/src/bpf/prog/ |
H A D | verifier.rs | 5 use crate::filesystem::vfs::file::FileDescriptorVec; 36 fn relocation(&mut self, fd_table: &Arc<RwLock<FileDescriptorVec>>) -> Result<()> { in relocation() 127 pub fn verify(mut self, fd_table: &Arc<RwLock<FileDescriptorVec>>) -> Result<BpfProg> { in verify()
|
/DragonOS/kernel/src/process/ |
H A D | syscall.rs | 19 vfs::{file::FileDescriptorVec, MAX_PATHLEN}, 473 rlimit.rlim_cur = FileDescriptorVec::PROCESS_MAX_FD as u64; in prlimit64() 474 rlimit.rlim_max = FileDescriptorVec::PROCESS_MAX_FD as u64; in prlimit64()
|
H A D | mod.rs | 32 vfs::{file::FileDescriptorVec, FileType}, 913 pub fn fd_table(&self) -> Arc<RwLock<FileDescriptorVec>> { in fd_table() argument 1117 fd_table: Option<Arc<RwLock<FileDescriptorVec>>>, 1130 let fd_table = Arc::new(RwLock::new(FileDescriptorVec::new())); in new() 1177 pub fn fd_table(&self) -> Option<Arc<RwLock<FileDescriptorVec>>> { in fd_table() argument 1181 pub fn set_fd_table(&mut self, fd_table: Option<Arc<RwLock<FileDescriptorVec>>>) { in set_fd_table() argument
|