sata_scr_valid(9)
β¨ sata_scr_valid(9) β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is sata_scr_valid β literally the vibe check for whether your SCRs are even accessible. let's get into it π
πΈ NAME πΈ
sata_scr_valid β test whether SCRs are accessible
π SYNOPSIS π
int sata_scr_valid (struct ata_link *link );
π¦ ARGUMENTS π¦
linkβ the ATA link you're testing SCR accessibility for. that's the one, that's the subject of the investigation π
π DESCRIPTION π
So what does it do? it tests whether SCRs are accessible for link. that's it, that's the whole gig. no cap β¨
LOCKING: None. zero locks, none needed, we are unbothered, we are free ποΈ
π RETURN π
1β SCRs are accessible, slay, we're so back π0β nope, not accessible, it's giving "no" π
π₯ SEE ALSO π₯
where do you even find this masterpiece? kernel file ./drivers/ata/libata-sata.c β and honestly the whole friend group is iconic, go say hi:
sata_scr_read(9)sata_scr_write(9)sata_scr_write_flush(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)
π«Ά that's the whole page bestie, go test your links, stay accessible, drink water π
okay and before you close the tab β this whole thing lives in ./drivers/ata and it's dated October 2026, and yes the page name is still sata_scr_valid(9) because main character energy never changes πβ¨
π¦ 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