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

Method IsMountPoint

src/filesystem/vfs/mount.cpp:217–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217auto MountTable::IsMountPoint(const char* path) -> bool {
218 if (path == nullptr) {
219 return false;
220 }
221
222 for (size_t i = 0; i < kMaxMounts; ++i) {
223 if (mounts_[i].active && mounts_[i].mount_path != nullptr &&
224 strcmp(mounts_[i].mount_path, path) == 0) {
225 return true;
226 }
227 }
228
229 return false;
230}
231
232auto MountTable::GetRootMount() -> MountPoint* { return root_mount_; }
233

Callers 1

fatfs_testFunction · 0.80

Calls 1

strcmpFunction · 0.85

Tested by 1

fatfs_testFunction · 0.64