am33xx_restart(9)
π 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 atarch/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
- 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