Struct kcore::chan::Dirent [−][src]
Expand description
Machine-independent directory entry.
A directory entry represents information of a file(or directory file). Timestamps are measured in seconds since the epoch(Jan 1 00:00 1970 GMT).
Fields
len: u64
Length of file in bytes. Cannot changed by a wstat.
mtime: u32
Timestamp of last change of the content.
For a plain file, mtime is the time of the most recent create, open with truncation, or write; for a directory it is the time of the most recent remove, create, or wstat of a file in the directory.
It can be changed by the owner of the file or the group leader of the file’s current group.
atime: u32
Timestamp of last read of the content. Cannot changed by a wstat.
It’s also set whenever mtime is set. In addition, for a directory, it is set by an attach, walk, or create, all whether successful or not.