do_kernel_power_off(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… do_kernel_power_off(9) β€” the Kernel API Manual bestie πŸŽ€

okay so picture this: it's kernel API manual o'clock, and we're learning do_kernel_power_off β€” the function that literally says "bye bestie" to your whole machine πŸ”₯


✨ NAME ✨

do_kernel_power_off β€” Execute kernel power-off handler call chain πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

void do_kernel_power_off (void );

🌸 ARGUMENTS 🌸

  • void β€” no arguments, ngl. zero. nada. it takes nothing and it gives everything πŸ’€

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: this one is expected to be called as the last step of the power-off sequence. like, the final boss of shutting down. the last text before you go to sleep 🫢

It powers off the system immediately if a power-off handler function has been registered. slay. iconic. the machine is gone.

Otherwise? it does nothing. literally nothing. no handler, no power-off, no drama πŸ™ˆ

⚠️ heads up bestie β€” "immediately" is not a little bit immediate. if a handler is registered, the system goes down right then. no take-backs, no vibe check, no saving your unsaved work. πŸ’€

🧚 SEE ALSO 🧚

okay this list is long but every single one of these is a friend of the function, so let's give them all their moment ✨

Kernel file ./kernel/reboot.c β€” the whole reboot.c neighborhood, go say hi 🏑


🌈 and that's the whole page, bestie!! this came straight out of the ./kernel source in October 2026, and it's filed under do_kernel_power_off(9) in the Kernel API Manual β€” go power off responsibly, mwah πŸ’œπŸ«Ά

πŸ“¦ where this page comes from