smccc_smc(9)
π SMCCC_SMC π (9)
okay bestie, welcome to smccc_smc(9) straight out of the Kernel API Manual β this is the page for smccc_smc, and it is literally the "hey firmware, do a thing for me" function π«Ά. Buckle up, it's short but it's iconic.
β¨ NAME β¨
smccc_smc β Invoke a SMCCC function using the smc conduit π
like⦠that's the whole vibe. you call a SMCCC function, and the smc conduit is the little doorway it goes through. no cap.
π¦ SYNOPSIS π¦
void smccc_smc (u32 function_id , u64 arg0 , u64 arg1 , u64 arg2 , u64 arg3 , u64 arg4 , u64 arg5 , u64 arg6 , struct arm_smccc_res *res );
that's eight arguments and one pointer, and yes you have to keep them all in order π
π ARGUMENTS π
function_idβ the SMCCC function to be called β¨ this is the main character, it decides which firmware function gets summoned.arg0-arg6β SMCCC function arguments, corresponding to registersx1-x7π so like, the args hand off to those registers, iykyk.
and then the page goes one by one, and honestly it's giving "the devs left these blank on purpose" energy, so here we are, one bullet each, nothing invented:
arg0β-- undescribed --π«arg1β-- undescribed --π«arg2β-- undescribed --π«arg3β-- undescribed --π«arg4β-- undescribed --π«arg5β-- undescribed --π«arg6β-- undescribed --π«
resβ pointer to write the return values from registersx0-x3π this is where the firmware drops the receipts. it's a pointer tostruct arm_smccc_res, and the four values fromx0throughx3land in there.
ngl bestie, that's the entire description of every argument. doesn't matter, we ate anyway π
πΈ SEE ALSO πΈ
- Kernel file
./tools/testing/selftests/kvm/include/arm64/processor.hπ§ struct arm_smccc_res(9)βsmccc_hvc(9)π₯ β the other conduit, the hvc one, go look at it too
okay that's the whole page, you're so welcome π this was smccc_smc(9), from the source ./tools/testing/selftests/kvm/..., dated October 2026, and the footer of the original literally says smccc_smc(9) again β full circle, periodt ππ¦
π¦ 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