sata_pmp_set_lpm(9)
π sata_pmp_set_lpm(9) β the Kernel API Manual, bestie edition
okay so you're in the kernel API manual and the page you opened is literally sata_pmp_set_lpm(9), and honestly? it's giving "small function, big job." let's get into it π
β¨ NAME β¨
sata_pmp_set_lpm β configure LPM for a PMP link. that's it, that's the whole name, and she ate π
πΈ SYNOPSIS πΈ
int sata_pmp_set_lpm (struct ata_link *link , enum ata_lpm_policy policy
, unsigned hints );
so she takes three things and hands you back an int. iconic signature, no notes π₯
π¦ ARGUMENTS π¦
linkβ the PMP link you're configuring LPM for. this is the main character of the operation, fr fr πpolicyβ your target LPM policy. the vibe you're aiming for β¨hintsβ the LPM hints. little extra context, lowkey important π
π DESCRIPTION π
so the whole point: this function configures LPM for link. simple as that π«Ά
and bestie, here's the cute part β this function will contain any PMP specific workarounds if necessary. like, if some hardware is being extra, this is where the patch-up lives. not me being the designated responsible one π
LOCKING: EH context. don't be out here calling her from anywhere else, ngl π
β RETURN β
0on success π-errnoon failure π
like every other well-behaved kernel function, she keeps it real with the errno convention π
π§ SEE ALSO π§
kernel file ./drivers/ata/libata-pmp.c, plus the whole friend group:
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_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)
fourteen whole besties, go read them all, iykyk π
and that's the page!! π¦ special shoutout to ./drivers/ata for being the source location and to October 2026 for the date β this manual was literally stamped in the future and we respect the time-travel queen energy ππ
periodt β¨
π¦ 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