Home
last modified time | relevance | path

Searched refs:PROCESS_MAX_FD (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dfile.rs385 pub fds: [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD],
389 pub const PROCESS_MAX_FD: usize = 32; constant
393 let mut data: [MaybeUninit<Option<Box<File>>>; FileDescriptorVec::PROCESS_MAX_FD] = in new()
397 for i in 0..FileDescriptorVec::PROCESS_MAX_FD { in new()
401 let data: [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD] = unsafe { in new()
402 core::mem::transmute::<_, [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD]>(data) in new()
414 for i in 0..FileDescriptorVec::PROCESS_MAX_FD { in clone()
435 if fd < 0 || fd as usize > FileDescriptorVec::PROCESS_MAX_FD { in validate_fd()
Dsyscall.rs462 if arg < 0 || arg as usize >= FileDescriptorVec::PROCESS_MAX_FD { in fcntl()
466 for i in arg..FileDescriptorVec::PROCESS_MAX_FD { in fcntl()