SBRMI_IOCTL_MCAMSR_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… SBRMI_IOCTL_MCAMSR_CMD πŸ’…

okay bestie so this is a page from the Kernel API Manual β€” the SBRMI_IOCTL_MCAMSR_CMD(9) one, yes the whole title is a vibe, don't worry about it ✨


🌸 Parameters 🌸

  • struct apml_mcamsr_msg β€” this is a pointer, and it points at the struct apml_mcamsr_msg that's gonna be holding all the protocol info. that's literally its whole job 🫢

✨ Description ✨

so this one's an IOCTL command for APML messages, and it uses the generic _IOWR. slay. what it does is give userspace access to the AMD sideband MCAMSR protocol β€” main character energy fr fr πŸ‘‘

here's the breakdown:

  • the MCAMSR protocol gets you the MCA bank details for a Function at thread level 🧚
  • and it returns "-EFAULT" if none of the above happens β€” and then a "-EPROTOTYPE" error gets returned too, so you get those extra error deets. iykyk 😭

πŸ¦‹ SEE ALSO πŸ¦‹

go look at the kernel file ./include/uapi/misc/amd-apml.h β€” and also these icons:


okay that's the whole page, no cap πŸ’– this one lives in ./include/uapi/misc, dated October 2026 β€” so yeah, from the future bestie, periodt πŸŒˆβ­πŸŽ€

πŸ“¦ where this page comes from