1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:47:35 +00:00

Kernel: Add /sys/kernel/request_panic node to simulate a kernel panic

When writing to /sys/kernel/request_panic it will do a kernel panic.
Trying to truncate the node will result in kernel panic with a slightly
different message.
This commit is contained in:
Liav A 2023-09-09 15:48:07 +03:00 committed by Andrew Kaster
parent 9836a9ad0e
commit 93e172895a
6 changed files with 91 additions and 0 deletions

View file

@ -58,6 +58,7 @@ in system reboot. A written value of `2` results in system shutdown.
* **`load_base`** - This node reveals the loading address of the kernel.
* **`system_mode`** - This node exports the chosen system mode as it was decided based on the kernel commandline or a default value.
* **`cmdline`** - This node exports the kernel boot commandline that was passed from the bootloader.
* **`request_panic`** - This node allows userspace to trigger (an artificial) kernel panic by writing/truncating it.
#### `net` directory