sata_pmp_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sata_pmp_write(9) β€” from the Kernel API Manual, bestie ✨

Okay so real talk, this one is from the sata_pmp_write(9) girlies of the kernel API manual and it's giving "tiny function, huge responsibilities" πŸŽ€ lowkey iconic.

🌸 NAME 🌸

sata_pmp_write β€” write PMP register, no cap πŸ’–

✨ SYNOPSIS ✨

unsigned int sata_pmp_write (struct ata_link *link , int reg , u32 val );

Like, that's the whole vibe. Three args, one return, done πŸ‘‘

πŸ¦‹ ARGUMENTS πŸ¦‹

  • link β€” the link you're writing the PMP register for, bestie. This is your link, okay? 🫢
  • reg β€” the register you wanna write to. Yeah. That one. ✨
  • val β€” the value you're writing into it. The actual payload. The main character of the operation πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

So you're writing a PMP register. That's it, that's the whole thing. Write PMP register. Periodt πŸ’€

LOCKING: Kernel thread context (may sleep) 😴 β€” so like, yes, it can sleep, which is honestly so valid of it.

⭐ RETURN ⭐

  • 0 on success πŸŽ‰ slay, everything worked
  • AC_ERR_* mask on failure 😭 not slay, something went wrong β€” and it comes back as a mask, iykyk

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/ata/libata-pmp.c β€” go read it, fr fr, it's right there:

Like the whole PMP friend group came out to support πŸ’–βœ¨ a whole squad.


Okay bye bestie, that's the page!! 🧚 It's from ./drivers/ata, dated October 2026, and yes the manual page is literally called sata_pmp_write(9) β€” nailed it, mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from