sata_scr_write_flush(9)
π sata_scr_write_flush(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to the Kernel API Manual entry for sata_scr_write_flush(9) β she's a tiny function with a very specific job and honestly? she does it flawlessly. let's get into it β¨
β¨ NAME β¨
sata_scr_write_flush β write the SCR register of the specified port and flush π«§
like, she writes. then she flushes. that's the whole personality. iconic.
πΈ SYNOPSIS πΈ
int sata_scr_write_flush (struct ata_link *link , int reg , u32 val );
literally three args and a dream, no cap π
π¦ ARGUMENTS π¦
linkβ the ATA link you're writing the SCR for πregβ which SCR you're writing, bestie. pick one π―valβ the value going in. the actual content. the main character of the operation π
π§ DESCRIPTION π§
okay so here's the tea: this function is identical to sata_scr_write β same vibes, same job β except this one performs a flush after writing to the register. that's the whole upgrade. write, then flush. she's not like other write functions π
LOCKING: None iflinkisap->link. Kernel thread context otherwise. π«Ά like, keep that in mind or things get weird, and not in a cute way π
β RETURN β
0on success β slay, it worked π- negative
errnoon failure β π not slay, check your errno
π₯ SEE ALSO π₯
all her besties and mutuals, fr fr:
- Kernel file
./drivers/ata/libata-sata.cπ sata_scr_valid(9)sata_scr_read(9)sata_scr_write(9)ata_tf_to_fis(9)ata_tf_from_fis(9)sata_link_debounce(9)sata_link_resume(9)sata_link_scr_lpm(9)sata_set_spd_needed(9)sata_set_spd(9)sata_down_spd_limit(9)sata_link_hardreset(9)sata_std_hardreset(9)ata_qc_complete_multiple(9)ata_slave_link_init(9)sata_lpm_ignore_phy_events(9)ata_ncq_prio_supported(9)ata_ncq_prio_enabled(9)ata_ncq_prio_enable(9)ata_change_queue_depth(9)ata_scsi_change_queue_depth(9)ata_sas_sdev_configure(9)ata_sas_queuecmd(9)sata_async_notification(9)ata_eh_read_log_10h(9)ata_eh_get_ncq_success_sense(9)ata_eh_analyze_ncq_error(9)
like, the entire group chat showed up ππ go read them, iykyk
that's the whole page, bestie β go flush something responsibly π«§β¨
okay bye, this came from the ./drivers/ata source, dated October 2026, and it's the sata_scr_write_flush(9) page from the Kernel API Manual β mwah ππ
π¦ 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