ata_sff_softreset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ata_sff_softreset 🌸

okay so welcome to the Kernel API Manual, bestie β€” yes, the whole manual name, we're folding it in right here at the top because we're classy like that πŸ’…. This page is all about ata_sff_softreset, and honestly? she's giving "quietly resets your entire host port" main character energy and I need you to respect it.


✨ NAME ✨

ata_sff_softreset β€” reset host port via ATA SRST. that's it, that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int ata_sff_softreset (struct ata_link *link , unsigned int *classes ,
unsigned long deadline );

look at her. three args. no cap, she's iconic.


πŸ’– ARGUMENTS πŸ’–

  • link β€” the ATA link you're resetting. like, the actual thing. the star of the show πŸ‘‘
  • classes β€” the resulting classes of attached devices get dropped in here, so it's an output situation fr fr
  • deadline β€” the deadline jiffies for the operation. yes, jiffies. that's the unit. that's just how kernel time works, don't @ me ⏰

πŸ”₯ DESCRIPTION πŸ”₯

Reset host port using ATA SRST. short, sweet, does exactly what it says on the tin ✨

LOCKING: Kernel thread context (may sleep)

🫢 real talk: that "may sleep" is not decor, bestie β€” it means you gotta be in kernel thread context, so don't be out here calling her from somewhere spicy. she naps. respect the nap. 😴

⭐ RETURN ⭐

0 on success, -errno otherwise. so like β€” zero means slay, negative means something went sideways and the errno tells you which flavour of sideways πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./drivers/ata/libata-sff.c β€” that's where she lives, go say hi πŸ¦‹

and then the entire squad, because apparently we're doing the full roll call and I am obsessed with the commitment:

like, the whole friend group showed up. ate. periodt. πŸ”₯


and that's the page!! πŸŒΈπŸ’–πŸŽ€ huge shoutout to ./drivers/ata for hosting the files, and to October 2026 for the date stamp β€” she's timestamped, she's documented, she's literally perfect. iykyk πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from