sata_std_hardreset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sata_std_hardreset(9) πŸ’…

okay bestie, so this page lives in the Kernel API Manual and it's literally about yeeting a SATA link with a COMRESET β€” but the ✨twist✨ is it does it without waiting and without classifying. it's giving "I pressed the button, I'm not sticking around to see what happens." πŸ’€


✨ NAME ✨

sata_std_hardreset β€” COMRESET w/o waiting or classification πŸŽ€


🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • link β€” the link you're resetting, bestie. that's the whole target 🎯
  • class β€” the resulting class of the attached device. so like, whatever gets left behind afterwards 😌
  • deadline β€” the deadline in jiffies for the operation. clock's ticking, no cap ⏰

πŸ’œ DESCRIPTION πŸ’œ

Standard SATA COMRESET w/o waiting or classification. that's it, that's the vibe β€” the reset happens, and this function is not about to sit around hitting refresh. πŸ™ˆ

LOCKING: Kernel thread context (may sleep) 😴 β€” so yes, it can nap, plan accordingly.


πŸ”₯ RETURN πŸ”₯

  • 0 if link offline πŸ‘‹
  • -EAGAIN if link online 🟒
  • -errno on errors 😭

⭐ SEE ALSO ⭐

so you KNOW I had to link the whole friend group 🫢 the kernel file is ./drivers/ata/libata-sata.c, and the crew is:


mwah πŸ’‹ this page came out of ./drivers/ata, dated October 2026 β€” go off, kernel docs, periodt. πŸ‘‘

πŸ“¦ where this page comes from