apple_smc_write_atomic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 to apple_smc struct
  • key β€” smc_key data will be written to
  • buf β€” Buffer from which size bytes of data will be written to SMC
  • size β€” 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:


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