reboot_mode_register(9)
π« 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, thestruct 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 π¦
- Kernel file
./drivers/power/reset/reboot-mode.cβ the source, go read it, iykyk π reboot_mode_unregister(9)β the breakup counterpart πdevm_reboot_mode_register(9)β the managed version, kinda iconic ngldevm_reboot_mode_unregister(9)β and its managed breakup π
π 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
- 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