apple_smc_enter_atomic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, apple_smc_enter_atomic(9) β€” straight out of the Kernel API Manual β€” is the function that gets you into atomic mode so you can actually use apple_smc_write_atomic. it’s giving β€œVIP pass to one specific function,” and i’m obsessed. πŸ’…


✨ SYNOPSIS ✨

int apple_smc_enter_atomic (struct apple_smc *smc );

🫢 ARGUMENTS 🫢

  • smc β€” pointer to apple_smc struct. that’s the one and only argument, bestie. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so this function switches the SMC backend to atomic mode, which is what lets you use apple_smc_write_atomic. but here’s the catch, and it’s a big one: while you’re in atomic mode, all other functions are disabled. like, all of them. no cap. πŸ’€

it’s only used for shutdown/reboot, because that path needs to write to a SMC key from atomic context. main character energy for a very specific moment, honestly. πŸ‘‘

heads up: atomic mode is a one-job situation. apple_smc_write_atomic is the only thing on the guest list, and all the other functions are uninvited. 🚫

⭐ RETURN ⭐

Zero on success, negative errno on error. slay when it works, sad little negative number when it doesn’t. 😭

🌈 SEE ALSO 🌈

Kernel file ./include/linux/mfd/macsmc.h, plus the whole squad:


mwah πŸ’‹ β€” this cutie comes from source/version ./include/linux/mfd, dated October 2026. πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from