omap3xxx_restart(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap3xxx_restart(9) β€” like, the Kernel API Manual bestie ✨

okay so welcome to the glow-up of the Kernel API Manual page for omap3xxx_restart β€” yes that's the header, yes it's a mouthful, no we're not renaming it πŸŽ€


✨ NAME ✨

omap3xxx_restart β€” trigger a software restart of the SoC

like, it makes the chip reboot itself. that's the whole vibe. πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

void omap3xxx_restart (enum reboot_mode mode , const char *cmd );

no cap, that's the exact signature β€” spaces and all, don't @ me πŸ’…


🌸 ARGUMENTS 🌸

  • mode β€” the "reboot mode", bestie. and where do you find out about it? see arch/arm/kernel/{setup,process}.c πŸ‘€ that's literally where it lives.
  • cmd β€” this one gets passed in from the userspace program that's rebooting the system (if provided, that is β€” it's optional energy, not mandatory energy 🫢).

πŸ’– DESCRIPTION πŸ’–

Resets the SoC. periodt. ✨

as for cmd β€” go peek at the 'reboot' syscall in kernel/sys.c, that's where the lore is πŸ“–

and no return value. it's giving void, it's giving "I don't owe you a result", it's iconic 😌

lowkey important: this is a void function. there's literally nothing coming back, so don't go assigning it to anything πŸ™ˆ

πŸ” SEE ALSO πŸ”

  • Kernel file ./arch/arm/mach-omap2/omap3-restart.c β€” the source of truth, go read it iykyk ⭐

and that's the whole page!! πŸŽ€ mwah πŸ’‹

sign-off time: this lil masterpiece lives in ./arch/arm/mach-omap2, dated October 2026 β€” so like, future-coded but make it kernel πŸŒˆπŸ¦‹ see u in the source files bestie πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from