ata_acpi_stm(9)
π« 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 frstmβ 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_STMdoesn'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 π
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_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)
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
- 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