Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/common/
H A Ddirent.h4 struct dirent struct
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs440 pub fn readdir(&self, dirent: &mut Dirent) -> Result<u64, SystemError> { in readdir()
472 let ptr = &mut dirent.d_name as *mut u8; in readdir()
481 dirent.d_ino = sub_inode.metadata().unwrap().inode_id.into() as u64; in readdir()
482 dirent.d_type = sub_inode.metadata().unwrap().file_type.get_file_type_num() as u8; in readdir()
486 - ::core::mem::size_of_val(&dirent.d_name)) as u64; in readdir()
488 dirent.d_reclen = size as u16; in readdir()
489 dirent.d_off += dirent.d_reclen as i64; in readdir()
H A Dsyscall.rs774 let dirent = in getdents() localVariable
791 let res = file.readdir(dirent).map(|x| x as usize); in getdents()