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

Method GetRootDentry

src/filesystem/vfs/mount.cpp:196–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196auto MountTable::GetRootDentry(MountPoint* mp) -> Dentry* {
197 if (mp == nullptr || !mp->active) {
198 return nullptr;
199 }
200 return mp->root_dentry;
201}
202
203auto MountTable::FindByMountDentry(const Dentry* dentry) -> MountPoint* {
204 if (dentry == nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected