sata_pmp_same_pmp(9)
π sata_pmp_same_pmp(9)
okay so bestie, welcome to the Kernel API Manual β this one's a little function from the kernel's SATA port-multiplier corner and honestly? it's giving "tiny but iconic" β¨
π NAME π
sata_pmp_same_pmp β does new GSCR matches the configured PMP? like, is this the same PMP or not, iykyk
π¦ SYNOPSIS π¦
int sata_pmp_same_pmp (struct ata_device *dev , const u32 *new_gscr );
πΈ ARGUMENTS πΈ
devβ the PMP device we're comparing against π«Ά that's our main character right therenew_gscrβ the GSCR block of the new device, aka the fresh vibe we're checking against
π DESCRIPTION π
So the whole plot: we take new_gscr, compare it against dev, and figure out whether dev is the PMP described by new_gscr. that's it. that's the function. no cap π
LOCKING: None. nope, zero, nada β no locking happening here π
β RETURN β
1 if dev matches new_gscr, 0 otherwise. literally just a yes-or-no situation, very binary of it tbh π₯
π SEE ALSO π
Kernel file ./drivers/ata/libata-pmp.c β and here's the whole friend group, all of them linked up π§:
sata_pmp_read(9)sata_pmp_write(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_revalidate(9)sata_pmp_revalidate_quick(9)sata_pmp_eh_recover_pmp(9)sata_pmp_eh_recover(9)sata_pmp_error_handler(9)
that's the whole page bestie, mwah π the ./drivers/ata girlies from October 2026 said periodt, and this came straight out of the Kernel API Manual β go forth and compare your PMPs responsibly πβ¨π¦
π¦ 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