sata_sff_hardreset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the sata_sff_hardreset(9) page from the Kernel API Manual ✨ This one is lowkey iconic: sata_sff_hardreset β€” reset host port via SATA phy reset πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int sata_sff_hardreset (struct ata_link *link , unsigned int *class ,
       unsigned long deadline );

πŸŽ€ ARGUMENTS πŸŽ€

  • link β€” the link to reset, main character energy 🫢
  • class β€” the resulting class of the attached device, that's the whole point of this parameter bestie ✨
  • deadline β€” deadline jiffies for the operation, aka the clock is ticking ⏳

πŸ”₯ DESCRIPTION πŸ”₯

SATA phy-reset host port using DET bits of SControl register, wait for !BSY and classify the attached device. No cap, that's the vibe πŸ”₯

LOCKING: Kernel thread context (may sleep) 😴

bestie, it says may sleep, so this is not the "tiny atomic moment" vibe β€” keep that in mind fr fr 🧚

πŸ’… RETURN πŸ’…

0 on success, -errno otherwise. Slay when it's 0, and when it's -errno, well… at least you know πŸ’€


🌈 SEE ALSO 🌈

Kernel file: ./drivers/ata/libata-sff.c β€” go peek at the source, iykyk πŸ‘€

The whole function squad, in the original order:


🫢 that's the whole page, bestie! Source/version: ./drivers/ata with Kernel API Manual energy; date: October 2026; and we out here on sata_sff_hardreset(9) πŸ’…βœ¨
πŸ“¦ where this page comes from