s10_protected_reg_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_ERROR on error β€” it did not work, and the register is telling you so 😭
  • INTEL_SIP_SMC_RETURN_UNKNOWN_FUNCTION if not supported β€” the thing just doesn't know this function, awk πŸ’€

🌈 SEE ALSO 🌈

go touch some of these next, iykyk:


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