apple_smc_enter_atomic(9)
π 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 toapple_smcstruct. 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:
smc_key(9)SMC_KEY(9)struct apple_smc_key_info(9)enum apple_smc_boot_stage(9)struct apple_smc(9)apple_smc_read(9)apple_smc_write(9)apple_smc_write_atomic(9)apple_smc_rw(9)apple_smc_get_key_by_index(9)apple_smc_get_key_info(9)apple_smc_key_exists(9)
mwah π β this cutie comes from source/version ./include/linux/mfd, dated October 2026. ππ§π
π¦ 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