MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / FatInode

Class FatInode

src/filesystem/fatfs/include/fatfs.hpp:261–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260 /// FatFS inode 私有数据
261 struct FatInode {
262 vfs::Inode inode;
263 /// 卷内绝对路径(供 FatFS 操作使用)
264 std::array<char, kPathBufSize> path{};
265 /// FIL 对象(普通文件打开时使用);目录或未使用时为 nullptr
266 FIL* fil = nullptr;
267 /// 该槽位是否在使用
268 bool in_use = false;
269 /// DIR 对象(目录迭代状态);未迭代时为 nullptr
270 DIR* dir = nullptr;
271 };
272
273 std::array<FatInode, kMaxInodes> inodes_;
274

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected