ata_acpi_gtm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ata_acpi_gtm(9) β€” like, the kernel API manual, bestie ✨

okay so this is ata_acpi_gtm(9) from the Kernel API Manual, and it's honestly such a tiny little icon β€” one function, one job, zero drama. let's get into it πŸŽ€


✨ NAME ✨

ata_acpi_gtm β€” she executes _GTM. that's it. that's the whole name. main character energy in four words πŸ’…


🌸 SYNOPSIS 🌸

int ata_acpi_gtm (struct ata_port *ap , struct ata_acpi_gtm *gtm );

literally just copy that exactly, no cap, don't be out here retyping it from memory πŸ™ˆ


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ap β€” the target ATA port, aka the thing we're pointing at πŸ‘‰
  • gtm β€” the out parameter where the _GTM result lands. it's giving "you get a result, bestie" 🎁

πŸ’– DESCRIPTION πŸ’–

so the whole vibe here is: evaluate _GTM and store the result in gtm. that's the assignment. she did it. slay πŸ’…

πŸ”’ LOCKING: EH context. that's the locking story, periodt β€” don't come for me, that's literally all the page says.

⭐ RETURN ⭐

  • 0 β€” success, we ate πŸ”₯
  • -ENOENT β€” _GTM doesn't exist, so like… no _GTM, no result, sorry babe 😭
  • -errno β€” any other failure, she returns -errno and we respect it πŸ’€

🌈 SEE ALSO 🌈

the kernel file is ./drivers/ata/libata-acpi.c and it's literally the mother of all of these, so go look at it 🫢

like, that's a whole friend group of ACPI functions and they all live in ./drivers/ata 🧚


okay bye bestie, this page came from ./drivers/ata, dated October 2026, and it's filed under ata_acpi_gtm(9) β€” love that for us, mwah πŸ’œπŸ“

πŸ“¦ where this page comes from