ata_acpi_gtm(9)
π 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_GTMresult 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β_GTMdoesn't exist, so likeβ¦ no_GTM, no result, sorry babe π-errnoβ any other failure, she returns-errnoand 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 π«Ά
ata_dev_acpi_handle(9)ata_acpi_handle_hotplug(9)ata_acpi_dev_manage_restart(9)ata_acpi_port_power_on(9)ata_acpi_dissociate(9)ata_acpi_stm(9)ata_dev_get_GTF(9)ata_acpi_gtm_xfermask(9)ata_acpi_cbl_pata_type(9)ata_acpi_run_tf(9)ata_acpi_exec_tfs(9)ata_acpi_push_id(9)ata_acpi_on_resume(9)ata_acpi_set_state(9)ata_acpi_on_devcfg(9)ata_acpi_on_disable(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms