sata_pmp_attach(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sata_pmp_attach(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for sata_pmp_attach(9) β€” the SATA PMP attach function. It’s lowkey iconic, and we’re gonna get through it together. ✨


🌸 NAME 🌸

sata_pmp_attach β€” attach a SATA PMP device. That’s the whole vibe: this is the function that gets a SATA PMP device hooked up. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int sata_pmp_attach (struct ata_device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the SATA PMP device to attach. That’s the target, the main character, the one getting configured. 🫢

✨ DESCRIPTION ✨

okay so sata_pmp_attach() configures and attaches the SATA PMP device dev. It’s also the one responsible for allocating and initializing the PMP links β€” yes, it does the whole setup, not just the attach part. πŸ’…

LOCKING: Kernel thread context (may sleep). So like, sleeping is allowed here β€” it’s that kind of context. 😴

πŸ’€ RETURN πŸ’€

0 on success, -errno on failure. Slay when it’s zero; sad little negative errno when it’s not. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/ata/libata-pmp.c β€” that’s the source home base, iykyk. Then the whole friend group:


mwah πŸ’‹ β€” brought to you by the ./drivers/ata source tree, October 2026, with love from the Kernel API Manual. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from