mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:57:44 +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:
parent
9836a9ad0e
commit
93e172895a
6 changed files with 91 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue