ata_acpi_stm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« ata_acpi_stm(9) β€” the kernel API manual, bestie edition πŸ’«

okay so you're reading the ata_acpi_stm(9) page from the Kernel API Manual and honestly? you're about to eat. this is the one that makes the kernel go talk to ACPI's _STM and i'm literally obsessed πŸŽ€


✨ NAME ✨

ata_acpi_stm β€” execute _STM. that's it. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

int ata_acpi_stm (struct ata_port *ap , const struct ata_acpi_gtm *stm
);

yes bestie, it takes two arguments and returns an int. short and iconic, no notes πŸ’…


✨ ARGUMENTS ✨

  • ap β€” the target ATA port 🌸 like, the port we're doing all this for, main character energy fr fr
  • stm β€” the timing parameter that gets handed over to _STM ⏱️ this is the actual payload of the whole operation

✨ DESCRIPTION ✨

so what it does is β€” it evaluates _STM with the timing parameter stm. that's the whole plot. no plot twists. 🫢

LOCKING: EH context. periodt. don't come at it from anywhere else, iykyk 😭

✨ RETURN ✨

  • 0 β€” success, we ate πŸ”₯
  • -ENOENT β€” happens when _STM doesn't exist. like, the thing you're looking for just isn't there πŸ™ˆ
  • -errno β€” on failure, whatever the errno says πŸ’€

✨ SEE ALSO ✨

the kernel file ./drivers/ata/libata-acpi.c and all its besties, in this exact order because we respect the lineup πŸ‘‘


and that's the page!! mwah πŸ’‹ this one came from ./drivers/ata, dated October 2026 β€” slay, go read the rest of the ata lore, ily, bye πŸ§šπŸ’œ

πŸ“¦ where this page comes from