sata_pmp_write(9)
π 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 β
0on success π slay, everything workedAC_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:
sata_pmp_read(9)sata_pmp_qc_defer_cmd_switch(9)sata_pmp_scr_read(9)sata_pmp_scr_write(9)sata_pmp_set_lpm(9)sata_pmp_read_gscr(9)sata_pmp_attach(9)sata_pmp_detach(9)sata_pmp_same_pmp(9)sata_pmp_revalidate(9)sata_pmp_revalidate_quick(9)sata_pmp_eh_recover_pmp(9)sata_pmp_eh_recover(9)sata_pmp_error_handler(9)
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
- 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