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

Method FreeInode

src/filesystem/fatfs/fatfs.cpp:196–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196auto FatFsFileSystem::FreeInode(vfs::Inode* inode) -> Expected<void> {
197 if (inode == nullptr) {
198 return std::unexpected(Error{ErrorCode::kInvalidArgument});
199 }
200 auto* fi = static_cast<FatInode*>(inode->fs_private);
201 FreeFatInode(fi);
202 return {};
203}
204
205auto FatFsFileSystem::GetFileOps() -> vfs::FileOps* { return &file_ops_; }
206

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected