ata_eh_link_autopsy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

ok so you're in the Kernel API Manual bestie, and we're about to do a whole forensic girlie thing πŸ’… this is ata_eh_link_autopsy(9) and yes it's literally as dramatic as it sounds.


✨ NAME ✨

ata_eh_link_autopsy β€” analyze error and determine recovery action 🫢


πŸŽ€ SYNOPSIS πŸŽ€

void ata_eh_link_autopsy (struct ata_link *link );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • link β€” the host link we're doing the autopsy on πŸ” like this is the patient, okay, we're investigating this one

πŸ’– DESCRIPTION πŸ’–

okay so the whole vibe here is: figure out why the link failed and decide which recovery actions are actually needed. That's the job. That's the whole assignment ✨

This function also sets the more detailed AC_ERR_* values β€” yes, the specific ones, not just a vague "something broke" β€” and it fills in sense data for ATAPI CHECK SENSE. Very thorough, very main character energy πŸ‘‘

πŸ”’ LOCKING πŸ”’

Kernel thread context (may sleep). So like… it's allowed to nap. Not me though 😭


🌈 SEE ALSO 🌈

Kernel file ./drivers/ata/libata-eh.c β€” go read it, iykyk πŸ“– and also all of these besties:


no cap, that's a lot of cross-references, but every single one of them is iconic in its own way πŸ’€ go click around, it's giving lore.

and that's the whole page bestie!! this one lives in ./drivers/ata and it's dated October 2026, so mark your calendar πŸ—“οΈβœ¨ mwah, go fix those links πŸ’œπŸ¦‹

πŸ“¦ where this page comes from