Kernel: Make F11 drop disk cache

This can be useful to detect memory leaks or something
This commit is contained in:
2025-08-31 00:36:59 +03:00
parent 791a541381
commit da39e98adf
5 changed files with 55 additions and 0 deletions

View File

@@ -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;