sata_std_hardreset(9)
π sata_std_hardreset(9) π
okay bestie, so this page lives in the Kernel API Manual and it's literally about yeeting a SATA link with a COMRESET β but the β¨twistβ¨ is it does it without waiting and without classifying. it's giving "I pressed the button, I'm not sticking around to see what happens." π
β¨ NAME β¨
sata_std_hardreset β COMRESET w/o waiting or classification π
πΈ SYNOPSIS πΈ
int sata_std_hardreset (struct ata_link *link , unsigned int *class ,
unsigned long deadline );
π¦ ARGUMENTS π¦
linkβ the link you're resetting, bestie. that's the whole target π―classβ the resulting class of the attached device. so like, whatever gets left behind afterwards πdeadlineβ the deadline in jiffies for the operation. clock's ticking, no cap β°
π DESCRIPTION π
Standard SATA COMRESET w/o waiting or classification. that's it, that's the vibe β the reset happens, and this function is not about to sit around hitting refresh. π
LOCKING: Kernel thread context (may sleep) π΄ β so yes, it can nap, plan accordingly.
π₯ RETURN π₯
0if link offline π-EAGAINif link online π’-errnoon errors π
β SEE ALSO β
so you KNOW I had to link the whole friend group π«Ά the kernel file is ./drivers/ata/libata-sata.c, and the crew is:
sata_scr_valid(9)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)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)
mwah π this page came out of ./drivers/ata, dated October 2026 β go off, kernel docs, periodt. π
π¦ 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