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

Method InitrdVolume

Kernel/src/fs/initrd.cpp:167–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 InitrdVolume::InitrdVolume(){
168 strcpy(mountPoint.name, "initrd");
169 mountPoint.flags = FS_NODE_DIRECTORY | FS_NODE_MOUNTPOINT;
170
171 mountPoint.read = Initrd::Read;
172 mountPoint.write = Initrd::Write;
173 mountPoint.open = Initrd::Open;
174 mountPoint.close = Initrd::Close;
175 mountPoint.readDir = Initrd::ReadDir;
176 mountPoint.findDir = Initrd::FindDir;
177
178 strcpy(mountPointDirent.name, "initrd");
179 mountPointDirent.type = FS_NODE_DIRECTORY;
180 }
181
182 size_t InitrdVolume::Read(struct fs_node* node, size_t offset, size_t size, uint8_t *buffer){
183 return Initrd::Read(node, offset, size, buffer);

Callers

nothing calls this directly

Calls 1

strcpyFunction · 0.85

Tested by

no test coverage detected