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

Class Device

Kernel/include/device.h:17–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17class Device : public FsNode {
18public:
19 Device(DeviceType type){
20 name = "";
21
22 this->type = type;
23 }
24
25 Device(const char* name, DeviceType type){
26 this->name = strdup(name);
27 this->type = type;
28 }
29
30 const char* GetName() const{
31 return name;
32 }
33protected:
34 void SetName(const char* name){
35 this->name = strdup(name);
36 }
37
38 char* name;
39 DeviceType type = TypeGenericDevice;
40};
41
42class PartitionDevice;
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected