am33xx_restart(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… am33xx_restart(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the am33xx_restart page β€” it lives in section 9 of the Kernel API Manual and it's genuinely one of those tiny-but-iconic little functions that just does one thing and does it slayfully πŸŽ€


✨ NAME ✨

am33xx_restart β€” trigger a software restart of the SoC πŸ’«

like, that's it. that's the whole job. press the big red button, but in code 🫢


🌸 SYNOPSIS 🌸

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

no cap, it returns nothing, it takes two things, and it's about to end your SoC's whole career 😭πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mode β€” the "reboot mode", fr. for the deets on this one, go look at arch/arm/kernel/{setup,process}.c β€” that's where the lore lives πŸ‘‘
  • cmd β€” this one gets passed down from the userspace program that's rebooting the system (if one was provided, that is πŸ’…). so like, if userspace had something to say, this is where it says it.

πŸ’– DESCRIPTION πŸ’–

so what does it actually do? it resets the SoC. periodt. πŸ’€

as for cmd, bestie, go check the 'reboot' syscall over in kernel/sys.c β€” that's the icon that hands it over in the first place 🌈

and the return value? none. there isn't one. no return value, no notes, no follow-up questions. main character energy only 😌✨


🧚 SEE ALSO 🧚

  • Kernel file ./arch/arm/mach-omap2/am33xx-restart.c β€” literally the whole source of truth, go read it, it's giving required reading πŸ“–πŸ’œ

ngl this page is short but it ate. small function, clear vibes, zero ambiguity πŸ“

and that's the vibe check bestie 🫢 this page came from ./arch/arm/mach-omap2 (the source/version situation, iykyk), dated October 2026, and it's forever filed under am33xx_restart(9) πŸ‘‘πŸ’« go forth and restart responsibly πŸ’…

πŸ“¦ where this page comes from