qcom_scm_cpu_power_down(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qcom_scm_cpu_power_down(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so this is a page straight out of the Kernel API Manual, and the star of the show is qcom_scm_cpu_power_down(9). yes it's a mouthful, yes it's iconic, no you don't have to pronounce it out loud at a party πŸ’–


✨ NAME ✨

qcom_scm_cpu_power_down β€” literally just Power down the cpu. that's it. that's the whole job. main character energy fr πŸŒ™


πŸ¦‹ SYNOPSIS πŸ¦‹

void qcom_scm_cpu_power_down (u32 flags );

so she takes one u32 called flags and returns void β€” no return value, no receipts, no "k bye" 😭 she's just gone.


🌸 ARGUMENTS 🌸

  • flags β€” the flags that tell it how to flush cache. that's the entire description, no cap, the manpage is being lowkey mysterious about it πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

bestie listen. this function is an end point to power down cpu β€” like the final boss of "okay we're actually shutting this core down now" πŸ”₯

here's the vibe check on what happens next, and this part is important so don't scroll past it:

  • if there was a pending interrupt, the control would return from this function. cool cool, you live to see another line of code ✨
  • otherwise, the cpu jumps to the warm boot entry point set for this cpu upon reset. so like… it doesn't come back to you, it goes straight to the warm boot address. that's the deal, that's the path, periodt πŸ’…

so basically: pending interrupt = you come back; no pending interrupt = the cpu yeets itself to the warm boot entry point. choose your fighter 🧚


🌈 SEE ALSO 🌈

the whole friend group shows up here, so let's give them their flowers πŸ’

Kernel file ./drivers/firmware/qcom/qcom_scm.c β€” yes, that's where the source lives, and here's the full squad:

that's a lot of friends and every single one of them made the list, so go read them too, iykyk πŸ‘‘


🫢 quick reminder: "the control would return from this function" is not a promise that the cpu comes back β€” it's literally the pending-interrupt branch. read the vibe check twice before you ship, bestie πŸ’€

and that's the whole page!! πŸ“ cute lil sign-off time: this one comes from the source under ./drivers/firmware/qcom, dated October 2026, and the page is qcom_scm_cpu_power_down(9). mwah, go power down that cpu responsibly βœ¨πŸ’…πŸŒ™

πŸ“¦ where this page comes from