MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / DevFS

Method DevFS

Kernel/src/device.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66 public:
67 DevFS(const char* name){
68 flags = FS_NODE_DIRECTORY;
69
70 vol.mountPoint = this;
71 vol.mountPointDirent = DirectoryEntry(this, name);
72
73 fs::RegisterVolume(&vol);
74 }
75
76 int ReadDir(DirectoryEntry* dirPtr, uint32_t index) final {
77 if(index >= devices.get_length() + 2){

Callers

nothing calls this directly

Calls 2

DirectoryEntryClass · 0.85
RegisterVolumeFunction · 0.85

Tested by

no test coverage detected