sata_pmp_attach(9)
π 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:
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_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)
mwah π β brought to you by the ./drivers/ata source tree, October 2026, with love from the Kernel API Manual. π«Άπ
π¦ 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