sata_down_spd_limit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

hiii bestie πŸ’– welcome to sata_down_spd_limit(9) β€” yes, that's the page, and the Kernel API Manual is the manual it lives in. This whole function is here to adjust SATA spd limit downward. Very demure, very mindful, very speed-cap. ✨

✨ SYNOPSIS ✨

int sata_down_spd_limit (struct ata_link *link , u32 spd_limit );

πŸŽ€ ARGUMENTS πŸŽ€

  • link β€” the link to adjust the SATA spd limit for. Like, this is the one getting the speed-limit glow-down. πŸ¦‹
  • spd_limit β€” the additional limit. Extra cap energy, no cap. 🧒

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function adjusts the SATA spd limit of link downward. Important note, bestie: this function only adjusts the limit. The change must be applied using sata_set_spd. Do not skip that part, or the limit is just sitting there looking cute and doing absolutely nothing. πŸ’…

If spd_limit is non-zero, the speed is limited to equal to or lower than spd_limit if such speed is supported. If spd_limit is slower than any supported speed, only the lowest supported speed is allowed. That's the rule. Periodt. 🌸

LOCKING: Inherited from caller. Like, whoever called this function brings the locking vibe β€” it is not being invented here. πŸ”’

πŸ’œ RETURN πŸ’œ

  • 0 on success ✨
  • negative errno on failure 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/ata/libata-sata.c and the whole friend group:


okay that's the page πŸ’… cute little sign-off: this one's from ./drivers/ata, dated October 2026, and the footer name is literally sata_down_spd_limit(9) β€” mwah, slay, bye 🫢

πŸ“¦ where this page comes from