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

Method DiskDevice

Kernel/src/storage/diskdevice.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8static int nextDeviceNumber = 0;
9
10DiskDevice::DiskDevice() : Device(TypeDiskDevice){
11 flags = FS_NODE_CHARDEVICE;
12
13 char buf[16];
14 strcpy(buf, "hd");
15 itoa(nextDeviceNumber++, buf + 2, 10);
16
17 SetName(buf);
18}
19
20int DiskDevice::InitializePartitions(){
21 static char letter = 'a';

Callers

nothing calls this directly

Calls 2

strcpyFunction · 0.85
itoaFunction · 0.50

Tested by

no test coverage detected