kernel_restart(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– kernel_restart(9) πŸ’–

okay so welcome to the Kernel API Manual page for kernel_restart β€” yes, that's the manual name, and yes, we're doing reboots today. This is the function that reboots the system, and it's giving main-character energy at the very end of a kernel's life. 🫢

🌸 NAME 🌸

kernel_restart β€” reboot the system πŸ’…

✨ SYNOPSIS ✨

void kernel_restart (char *cmd );

That's the whole signature, bestie: void, one char * named cmd. No cap. πŸ¦‹

πŸŽ€ ARGUMENTS πŸŽ€

  • cmd β€” pointer to buffer containing command to execute for restart, or NULL. So like, hand it a buffer with the restart command, or just pass NULL and let it be. ✨

πŸ’… DESCRIPTION πŸ’…

Shutdown everything and perform a clean reboot. That's the assignment. It's literally shutting everything down and doing a clean reboot, and the vibe is very "goodbye forever, but make it orderly." 🌈

⚠️ Safety check: This is not safe to call in interrupt context. Like, do not. The original says it plainly, and I'm saying it with my whole chest: interrupt context is not the place for this. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./kernel/reboot.c β€” that's the source-file bestie. Then the whole reboot/power-off friend group, all with their (9) manpage energy:


That's the page, bestie! Source/version: ./kernel Β· Date: October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from