s10_protected_reg_read(9)
β¨ s10_protected_reg_read β the Kernel API Manual (section 9, bestie) β¨
okay so real talk, we're in the Kernel API Manual, section 9, and today's main character is s10_protected_reg_read. she reads a register. she's protected. she's booked and busy. π
πΈ NAME πΈ
s10_protected_reg_read β literally it's just the function name up here, no extra blurb, the name is the serve π
π¦ SYNOPSIS π¦
int s10_protected_reg_read (void *base , unsigned int reg , unsigned int
*val );
three args, one int coming back at you, that's the whole vibe π«Ά
π ARGUMENTS π
baseβ the base address of the System Manager. like, where the System Manager lives. that's her address πregβ the address of the register. yes, address of the register, not the value, don't get it twisted πvalβ the value that got read. she gets filled in for you, icon behaviour β¨
π₯ DESCRIPTION π₯
so what does she actually do? she reads the status of a protected SMC register. that's it. that's the whole plot. no cap, she's not doing side quests π
π RETURN π
she comes back with one of these, and which one you get tells you everything:
INTEL_SIP_SMC_STATUS_OK(0) β slay, it worked, success, we love to see it πINTEL_SIP_SMC_REG_ERRORβ uh oh, error, something went sideways πINTEL_SIP_SMC_RETURN_UNKNOWN_FUNCTIONβ the function just isn't supported, so sorry bestie, not today π
π SEE ALSO π
go touch grass in these, they're all connected iykyk:
- the kernel file
./drivers/mfd/altera-sysmgr.c struct altr_sysmgr(9)s10_protected_reg_write(9)β yeah she has a sister, the write one, go say hi π«Άaltr_sysmgr_regmap_lookup_by_phandle(9)
okay that's the whole page, you understood it, I'm so proud of you fr fr π§π
mwah π β this cutie came out of ./drivers/mfd in October 2026, that's the source/version and the date, all wrapped up in a little sign-off because you deserve it β
π¦ 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