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

Method KeyboardDevice

Kernel/src/arch/x86_64/keyboard.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 DirectoryEntry dirent;
38
39 KeyboardDevice(char* name) : Device(name, TypeInputDevice){
40 flags = FS_NODE_CHARDEVICE;
41 strcpy(dirent.name, name);
42 dirent.flags = flags;
43 dirent.node = this;
44 }
45
46 ssize_t Read(size_t offset, size_t size, uint8_t *buffer){
47 if(size > keyCount) size = keyCount;

Callers

nothing calls this directly

Calls 1

strcpyFunction · 0.85

Tested by

no test coverage detected