ata_acpi_exec_tfs(9)
π ata_acpi_exec_tfs β the <pink>Kernel API Manual</pink> entry, bestie edition π
okay so real talk, this is ata_acpi_exec_tfs(9) and it is lowkey the moment ACPI meets your ATA device and they exchange notes. it's giving "get the settings, then write the settings." slay.
β¨ SYNOPSIS β¨
int ata_acpi_exec_tfs (struct ata_device *dev , int *nr_executed );
literally that's the whole signature. two args. gorgeous. no cap. π
πΈ ARGUMENTS πΈ
devβ the target ATA device π― like, the actual device we're doing all this for. main character energy fr.nr_executedβ an out parameter for the number of executed commands. yes bestie, it's an out parameter β the function writes back into it so you know how many commands actually got executed. π«Ά
π¦ DESCRIPTION π¦
so what does it do? it evaluates _GTF and then executes the taskfiles that came back from it. that's it, that's the vibe. get the taskfile settings, then write them. iconic. β¨
LOCKING: EH context. π¨ that's the lock context, keep it in mind, iykyk.
π₯ RETURN π₯
- the number of executed taskfiles on success β yay π
0if_GTFdoesn't exist (like, it just wasn't there, no drama, no error)-errnoon other errors π so check your negative values okay
β SEE ALSO β
the kernel file lives at ./drivers/ata/libata-acpi.c β go look, it's right there π
and like, the whole friend group:
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_gtm(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_push_id(9)ata_acpi_on_resume(9)ata_acpi_set_state(9)ata_acpi_on_devcfg(9)ata_acpi_on_disable(9)
all of them. every single one. we don't skip the squad. π
and that's the page!! love that for us. go forth and evaluate your _GTF responsibly bestie π
mwah π this has been ./drivers/ata, October 2026, ata_acpi_exec_tfs(9) β see you in the next manpage, bye!! ππ
π¦ 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