apple_smc_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is apple_smc_write(9) from the Kernel API Manual, and it’s literally here to write size bytes into the given SMC key from buf. no cap, that’s the whole assignment. 🫢

✨ SYNOPSIS ✨

int apple_smc_write (struct apple_smc *smc , smc_key key , const void
       *buf , size_t size );

🌸 ARGUMENTS 🌸

  • smc β€” pointer to an struct apple_smc, aka the SMC struct you’re working with. main character energy fr. πŸ’…
  • key β€” the smc_key that the data will be written to. this is the destination key, periodt.
  • buf β€” buffer from which size bytes of data will be written to SMC. think of it as the little data snack bag you’re emptying into the key. πŸ“
  • size β€” number of bytes to be written. count β€˜em, bestie. πŸ”’

πŸ¦‹ RETURN πŸ¦‹

Zero on success β€” slay βœ…. Negative errno on error β€” so if it comes back negative, something went off and you go check that errno. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

okay so there’s a whole friend group here, and you should absolutely go peek at them:

mwah πŸ’‹ this page came from source/version ./include/linux/mfd and is dated October 2026 β€” iykyk, go write those bytes responsibly. 🌈✨

πŸ“¦ where this page comes from