kernel_can_power_off(9)
π NAME π
kernel_can_power_off β bestie, this one literally just checks whether the system can be powered off π
(also hi, this page lives in the Kernel API Manual, section 9, and it's giving very "quick vibe check before we shut the whole thing down" energy β¨)
β¨ SYNOPSIS β¨
bool kernel_can_power_off (void );
π¦ ARGUMENTS π¦
voidβ no arguments, babe. none. zero. it takes nothing π
π DESCRIPTION π
Returns true if a power-off handler is registered and the system can be powered off. Otherwise it returns false. That's the whole tea β β it's a yes/no check, not an action. No cap.
π SEE ALSO π
Kernel file ./kernel/reboot.c β and like, the entire reboot/power-off friend group π:
emergency_restart(9)register_reboot_notifier(9)unregister_reboot_notifier(9)register_restart_handler(9)unregister_restart_handler(9)do_kernel_restart(9)kernel_restart(9)kernel_halt(9)register_sys_off_handler(9)unregister_sys_off_handler(9)devm_register_sys_off_handler(9)devm_register_power_off_handler(9)devm_register_restart_handler(9)register_platform_power_off(9)unregister_platform_power_off(9)do_kernel_power_off(9)kernel_power_off(9)orderly_poweroff(9)orderly_reboot(9)hw_failure_emergency_action_func(9)hw_failure_emergency_schedule(9)__hw_protection_trigger(9)
okay that's the whole page, bestie β sourced from ./kernel, dated October 2026, and signed off with a little kiss from kernel_can_power_off(9) itself ππ§ββοΈπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms