Inode — 文件元数据(独立于路径名)
More...
#include <vfs.hpp>
Inode — 文件元数据(独立于路径名)
每个文件/目录在 VFS 中有且仅有一个 Inode。 Inode 持有文件的元信息和操作方法指针。
Definition at line 16 of file vfs.hpp.
◆ fs
所属文件系统
Definition at line 30 of file vfs.hpp.
◆ fs_private
| void* vfs::Inode::fs_private {nullptr} |
文件系统私有数据指针
Definition at line 28 of file vfs.hpp.
◆ ino
| uint64_t vfs::Inode::ino {0} |
inode 编号(文件系统内唯一)
Definition at line 18 of file vfs.hpp.
◆ link_count
| uint32_t vfs::Inode::link_count {1} |
◆ ops
文件操作接口
Definition at line 33 of file vfs.hpp.
◆ permissions
| uint32_t vfs::Inode::permissions {0644} |
权限位(简化版)
Definition at line 24 of file vfs.hpp.
◆ size
| uint64_t vfs::Inode::size {0} |
文件大小(字节)
Definition at line 22 of file vfs.hpp.
◆ type
The documentation for this struct was generated from the following file:
- /workspaces/SimpleKernel/src/filesystem/vfs/include/vfs.hpp