sata_pmp_scr_write(9)
π
sata_pmp_scr_write(9) β from the Kernel API Manual π
Okay bestie, welcome to the Kernel API Manual corner where we write a PSCR and keep it cute. Lowkey low-level, highkey important. Let's go. β¨
π NAME π
sata_pmp_scr_write β write PSCR
π SYNOPSIS π
int sata_pmp_scr_write (struct ata_link *link , int reg , u32 val );
π¦ ARGUMENTS π¦
linkβ ATA link to write PSCR for. That's the target, bestie.regβ PSCR to write. Yep, this one right here.valβ value to be written. The payload, the moment, the icon.
πΈ DESCRIPTION πΈ
So like, write val to PSCR reg for link, to be called from ata_scr_write and ata_scr_write_flush. That's the whole vibe. π«Ά
LOCKING: Kernel thread context (may sleep). π€
π₯ RETURN π₯
0 on success, -errno on failure. Zero is slay; negative is giving error energy, fr fr. π
π SEE ALSO π
Kernel file ./drivers/ata/libata-pmp.c, plus the whole squad:
sata_pmp_read(9)sata_pmp_write(9)sata_pmp_qc_defer_cmd_switch(9)sata_pmp_scr_read(9)sata_pmp_set_lpm(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)
Mwah π cute little footer sign-off: source/version corner is ./drivers/ata, dated October 2026, and the page is literally sata_pmp_scr_write(9). That's the whole footer, no crumbs. π
π¦ 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