apple_smc_write_atomic(9)
okay so bestie, welcome to the apple_smc_write_atomic(9) page from the Kernel API Manual β it's literally about writing into an SMC key, and we're gonna get you through it π
β¨
π NAME π
apple_smc_write_atomic β write size bytes into the given SMC key from buf without sleeping π«Ά
β¨ SYNOPSIS β¨
int apple_smc_write_atomic (struct apple_smc *smc , smc_key key , const
void *buf , size_t size );
πΈ ARGUMENTS πΈ
smcβ Pointer toapple_smcstructkeyβsmc_keydata will be written tobufβ Buffer from whichsizebytes of data will be written to SMCsizeβ Number of bytes to be written
π¦ DESCRIPTION π¦
okay so quick vibe check, bestie: this function will fail if apple_smc_enter_atomic hasn't been called before. that's the note, and it's lowkey important π
π₯ RETURN π₯
Zero on success, negative errno on error. periodt π
π SEE ALSO π
Kernel file ./include/linux/mfd/macsmc.h plus these iconic references:
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_enter_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 π β source/version line says ./include/linux/mfd, the date is October 2026, and the page is apple_smc_write_atomic(9) π
π¦ 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