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

Method FindByMountDentry

src/filesystem/vfs/mount.cpp:203–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203auto MountTable::FindByMountDentry(const Dentry* dentry) -> MountPoint* {
204 if (dentry == nullptr) {
205 return nullptr;
206 }
207
208 for (size_t i = 0; i < kMaxMounts; ++i) {
209 if (mounts_[i].active && mounts_[i].mount_dentry == dentry) {
210 return &mounts_[i];
211 }
212 }
213
214 return nullptr;
215}
216
217auto MountTable::IsMountPoint(const char* path) -> bool {
218 if (path == nullptr) {

Callers 1

LookupFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected