kernel_can_power_off(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸ‘‘:


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