s10_protected_reg_write(9)
π s10_protected_reg_write(9) π
ok so this is a page from the Kernel API Manual bestie, and yes the name is a mouthful but we're gonna get through it together π«Ά
β¨ NAME β¨
s10_protected_reg_write β literally it, that's the whole name, the original page left the description blank so I'm not gonna make one up for you π (the manpage said nothing, so I say nothing β we respect the source material here)
πΈ SYNOPSIS πΈ
int s10_protected_reg_write (void *base , unsigned int reg , unsigned
int val );
three args in, one int out, no cap β¨
π ARGUMENTS π
baseβ the base address of the System Manager. like, the home address of the whole thing πregβ the address offset of the register. it's giving "which drawer in the filing cabinet" ποΈvalβ the value you wanna write. the actual payload, the main character of this whole operation π <br>
π¦ DESCRIPTION π¦
so what does it do?? it writes to a protected SMC register. that's the whole vibe. protected, so likeβ¦ be normal about it π π₯
β RETURN β
here's what you get back, bestie β memorise these:
INTEL_SIP_SMC_STATUS_OK(0) on success β slay, it worked β¨INTEL_SIP_SMC_REG_ERRORon error β it did not work, and the register is telling you so πINTEL_SIP_SMC_RETURN_UNKNOWN_FUNCTIONif not supported β the thing just doesn't know this function, awk π
π SEE ALSO π
go touch some of these next, iykyk:
- Kernel file
./drivers/mfd/altera-sysmgr.c struct altr_sysmgr(9)s10_protected_reg_read(9)β the read counterpart, the sibling, the duo π«Άaltr_sysmgr_regmap_lookup_by_phandle(9)
and that's the whole page diva π§π this one lives under ./drivers/mfd and it's dated October 2026 β so like, future energy fr fr. go write some protected registers, but responsibly ππΈπ
π¦ 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