mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
Kernel+Userland: Move /sys/firmware/power_state to /sys/kernel directory
Let's put the power_state global node into the /sys/kernel directory, because that directory represents all global nodes and variables being related to the Kernel. It's also a mutable node, that is more acceptable being in the mentioned directory due to the fact that all other files in the /sys/firmware directory are just firmware blobs and are not mutable at all.
This commit is contained in:
parent
8c21d974b2
commit
75f01692b4
Notes:
sideshowbarker
2024-07-17 05:05:56 +09:00
Author: https://github.com/supercomputer7
Commit: 75f01692b4
Pull-request: https://github.com/SerenityOS/serenity/pull/15593
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
9 changed files with 21 additions and 21 deletions
|
@ -14,5 +14,5 @@ $ reboot
|
|||
|
||||
## Notes
|
||||
|
||||
The `reboot` utility opens the `/sys/firmware/power_state` node and writes the magic value "1"
|
||||
The `reboot` utility opens the `/sys/kernel/power_state` node and writes the magic value "1"
|
||||
to instruct the kernel to reboot the machine.
|
||||
|
|
|
@ -14,5 +14,5 @@ $ shutdown
|
|||
|
||||
## Notes
|
||||
|
||||
The `shutdown` utility opens the `/sys/firmware/power_state` node and writes the magic value "2"
|
||||
The `shutdown` utility opens the `/sys/kernel/power_state` node and writes the magic value "2"
|
||||
to instruct the kernel to power off the machine.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue