sata_pmp_set_lpm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • 0 on success πŸŽ‰
  • -errno on 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:

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