ata_sff_wait_after_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ata_sff_wait_after_reset(9) ✨

okay so bestie, this is ata_sff_wait_after_reset(9) from the Kernel API Manual, and it's literally the β€œwait for devices to become ready after reset” girlie. no cap, she's a real one. 🫢


πŸ’– NAME πŸ’–

ata_sff_wait_after_reset β€” wait for devices to become ready after reset.


🌸 SYNOPSIS 🌸

int ata_sff_wait_after_reset (struct ata_link *link , unsigned int
       devmask , unsigned long deadline );

πŸŽ€ ARGUMENTS πŸŽ€

  • link β€” SFF link which is just reset.
  • devmask β€” mask of present devices.
  • deadline β€” deadline jiffies for the operation.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what's the vibe? It waits for devices attached to the SFF link to become ready after reset. It contains a preceding 150ms wait to avoid accessing the TF status register too early, which is highkey important. ⏳✨

LOCKING: Kernel thread context (may sleep). so yes, she may sleep, and that's iconic.

πŸ”₯ RETURN πŸ”₯

  • 0 on success.
  • -ENODEV if some or all of the devices in devmask don't seem to exist.
  • -errno on other errors.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/ata/libata-sff.c β€” and here's the whole reference squad, every single one, no cap:


byeee πŸ’… source/version: ./drivers/ata Β· date: October 2026 Β· page: ata_sff_wait_after_reset(9) β€” mwah, go wait on those devices bestie 🧚

πŸ“¦ where this page comes from