reboot_mode_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« reboot_mode_register(9) πŸ’«

okay so this is a page from the Kernel API Manual and bestie, it's a short one but it's important, so pay attention 🫢


✨ NAME ✨

reboot_mode_register β€” literally registers a reboot mode driver πŸ’…

Like, that's it. That's the whole vibe. Your driver shows up, gets a name tag, and now the kernel knows it exists. slay.


🌸 SYNOPSIS 🌸

int reboot_mode_register (struct reboot_mode_driver *reboot );

no cap, that's the whole signature. look at her go πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • reboot β€” the reboot mode driver. yeah, that's the whole description. she's the star of the show, the main character, the struct reboot_mode_driver * you're handing over ✨

πŸ’– RETURN πŸ’–

returns 0 on success πŸŽ‰ or a negative error code on failure 😭 (and yes, if you see a negative number come back, something went sideways β€” check it, fr fr).


πŸ¦‹ SEE ALSO πŸ¦‹


🌈 reminder bestie: register it, and when you're done, unregister it. the kernel does not forget. πŸ™ˆ

that's the whole page, mwah πŸ’‹ β€” sourced straight from ./drivers/power/reset, dated October 2026, and yeah, the page name is literally reboot_mode_register(9) again at the bottom because manpages love a little encore. periodt. πŸ“πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from