apple_smc_get_key_by_index(9)
π NAME π
okay bestie, meet apple_smc_get_key_by_index(9) from the Kernel API Manual. This is the little lookup baddie: you give it an index, and it returns the corresponding SMC key. literally a key-finding moment, no cap β¨
β¨ SYNOPSIS β¨
the signature is exactly this, don't touch a character:
int apple_smc_get_key_by_index (struct apple_smc *smc , int index , smc_key *key );
π ARGUMENTS π
smcβ Pointer toapple_smcstruct. yes, that exact struct, she's right there π«Άindexβ Index to be resolved. this is the index you're asking about.keyβ Buffer for SMC key to be returned. it catches the SMC key on the way out π
π RETURN π
the return vibe is literally: Zero on success, negative errno on error. zero means slay, it worked; negative errno means nope, something went sideways π
π SEE ALSO π
Kernel file ./include/linux/mfd/macsmc.h is the home base. also the whole bestie lineup:
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_write_atomic(9)apple_smc_rw(9)apple_smc_get_key_info(9)apple_smc_key_exists(9)
and that's the page! source/version corner is ./include/linux/mfd, dated October 2026, and the manual name is apple_smc_get_key_by_index(9). stay iconic, bestie π
π«Ά
π¦ 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