sata_link_resume(9)
πΈ sata_link_resume(9) πΈ
okay bestie, so this one's from the Kernel API Manual β it's sata_link_resume(9), and it is literally the function that wakes your SATA link back up and makes sure it's actually awake. very main character energy for a phy. let's get into it π
β¨ NAME β¨
sata_link_resume β resume SATA link π¦
β¨ SYNOPSIS β¨
int sata_link_resume (struct ata_link *link , const unsigned int *params
, unsigned long deadline );
β¨ ARGUMENTS β¨
linkβ the ATA link we're resuming SATA on. that's our girl πparamsβ timing parameters{ interval, duration, timeout }, and ngl they're all in msec. all three, in that order, in msec. don't come for me, that's just what it is πdeadlineβ the deadline for the whole operation, measured in jiffies. yes, jiffies. iconic unit tbh β
β¨ DESCRIPTION β¨
Resume SATA phy link and debounce it. that's the whole vibe β wake the phy back up, then debounce it so it's not out here being all flappy and unreliable. slay π«Ά
LOCKING: Kernel thread context β and it may sleep. so like, don't call it somewhere that can't nap, bestie, that's the whole point π
β¨ RETURN β¨
0 on success, -errno on failure. no cap π β those are your only two outcomes.
β¨ SEE ALSO β¨
the kernel file is ./drivers/ata/libata-sata.c and it's surrounded by a whole friend group, fr fr:
./drivers/ata/libata-sata.c β the kernel file, homegirl's actual address π
then the crew:
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_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)
and that's the page, bestie π§π β shoutout to ./drivers/ata for the source, dated October 2026, aka the version info. go resume that link, iykyk ππ
π¦ 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