Dentry — 目录项缓存(路径名 ↔ Inode 的映射)
More...
#include <vfs.hpp>
Dentry — 目录项缓存(路径名 ↔ Inode 的映射)
Dentry 构成一棵树,反映目录层次结构。 支持路径查找加速。
Definition at line 41 of file vfs.hpp.
◆ children
| Dentry* vfs::Dentry::children {nullptr} |
子目录项链表头
Definition at line 49 of file vfs.hpp.
◆ deleted
| bool vfs::Dentry::deleted {false} |
标记为已删除(unlink/rmdir 时 ref_count > 0)
Definition at line 57 of file vfs.hpp.
◆ fs_private
| void* vfs::Dentry::fs_private {nullptr} |
文件系统私有数据
Definition at line 53 of file vfs.hpp.
◆ inode
| Inode* vfs::Dentry::inode {nullptr} |
关联的 inode
Definition at line 45 of file vfs.hpp.
◆ name
| char vfs::Dentry::name[256] {} |
文件/目录名
Definition at line 43 of file vfs.hpp.
◆ next_sibling
| Dentry* vfs::Dentry::next_sibling {nullptr} |
兄弟目录项(同一父目录下)
Definition at line 51 of file vfs.hpp.
◆ parent
| Dentry* vfs::Dentry::parent {nullptr} |
◆ ref_count
| uint32_t vfs::Dentry::ref_count {0} |
The documentation for this struct was generated from the following file:
- /workspaces/SimpleKernel/src/filesystem/vfs/include/vfs.hpp