1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +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:
Liav A 2022-10-15 05:57:20 +03:00 committed by Andrew Kaster
parent 8c21d974b2
commit 75f01692b4
9 changed files with 21 additions and 21 deletions

View file

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

View file

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