sata_set_spd_needed(9)
π sata_set_spd_needed(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to sata_set_spd_needed(9) π this is one of those little libata helper functions that lives in ./drivers/ata/libata-sata.c, and honestly? she's a vibe check for your SATA link speed config. let's get into it β¨
β¨ NAME β¨
sata_set_spd_needed β literally just answers "is SATA spd configuration needed" π
π¦ SYNOPSIS π¦
int sata_set_spd_needed (struct ata_link *link );
πΈ ARGUMENTS πΈ
linkβ the link in question π«Ά like, the actualstruct ata_linkyou're curious about. main character energy, honestly.
π₯ DESCRIPTION π₯
so what she does π : she tests whether the spd limit sitting in SControl matches link->sata_spd_limit. that's the whole flex.
and why do we care?? because this function is used to determine whether hardreset is necessary to apply SATA spd configuration π like yeah, no cap, sometimes you gotta hardreset the link just to make the new speed setting actually stick. she's the one who tells you if that's the situation.
LOCKING: inherited from caller π she does not take her own locks, bestie β that's your job. you brought the locks, you hold the locks, iykyk π
β RETURN β
1β yep, SATA spd configuration is needed π₯0β nope, you're good, no config needed π
like, it's giving boolean. that's it. that's the whole return value π
π§ SEE ALSO π§
the kernel file ./drivers/ata/libata-sata.c says hi, and so do all her friends π:
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(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)
go read sata_set_spd(9) next if you actually wanna set the thing β this page only tells you whether you need to π
and that's the whole page, bestie, we ate and left no crumbs π
this little drop came out of ./drivers/ata back in October 2026, and it's still out here doing sata_set_spd_needed(9) things. 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