forked from Bananymous/banan-os
Kernel: Make F11 drop disk cache
This can be useful to detect memory leaks or something
This commit is contained in:
@@ -155,6 +155,9 @@ namespace Kernel
|
||||
case LibInput::keycode_function(1):
|
||||
Processor::toggle_should_print_cpu_load();
|
||||
break;
|
||||
case LibInput::keycode_function(11):
|
||||
DevFileSystem::get().initiate_disk_cache_drop();
|
||||
break;
|
||||
case LibInput::keycode_function(12):
|
||||
Kernel::panic("Keyboard kernel panic :)");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user