sata_pmp_scr_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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