Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs578 let mut kstat = PosixKstat::new(); in do_fstat() localVariable
582 kstat.size = metadata.size as i64; in do_fstat()
583 kstat.dev_id = metadata.dev_id as u64; in do_fstat()
584 kstat.inode = metadata.inode_id as u64; in do_fstat()
585 kstat.blcok_size = metadata.blk_size as i64; in do_fstat()
586 kstat.blocks = metadata.blocks as u64; in do_fstat()
588 kstat.atime.tv_sec = metadata.atime.tv_sec; in do_fstat()
589 kstat.atime.tv_nsec = metadata.atime.tv_nsec; in do_fstat()
590 kstat.mtime.tv_sec = metadata.mtime.tv_sec; in do_fstat()
591 kstat.mtime.tv_nsec = metadata.mtime.tv_nsec; in do_fstat()
[all …]
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs960 let kstat = args[1] as *mut PosixKstat; in handle() localVariable
961 let vaddr = VirtAddr::new(kstat as usize); in handle()
965 Ok(_) => Self::fstat(fd, kstat), in handle()