ata_dev_acpi_handle(9)
π¦ NAME π¦
ok so this is ata_dev_acpi_handle from the Kernel API Manual β and what it does is literally provide the acpi_handle for an ata_device. that's the whole vibe π
β¨ SYNOPSIS β¨
acpi_handle ata_dev_acpi_handle (struct ata_device *dev );
(no cap, that space before the ); is in the original and we're keeping it, we don't touch the code π«Ά)
π ARGUMENTS π
devβ bestie, theacpi_handlethat gets returned is gonna correspond to this device. that's it, that's the input πΈ
π DESCRIPTION π
So the way this works: it returns the acpi_handle for the ACPI namespace object that corresponds to the ata_device you passed into the function. iconic behavior honestly.
but listen β it returns NULL if no such object exists, OR if ACPI is disabled for this device due to consecutive errors π so like, don't be surprised if you get a NULL back, it's not being shady, it's just the rules fr fr.
β οΈ both NULL cases are legit outcomes, not bugs: no corresponding ACPI namespace object, or ACPI disabled for the device because of consecutive errors. know the difference bestie π
π SEE ALSO π
the kernel file is ./drivers/ata/libata-acpi.c and here's the whole friend group, all of them, every single one π
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_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!! π¦π this little icon lives in ./drivers/ata, it's dated October 2026, and it's literally titled ata_dev_acpi_handle(9) β mwah, periodt πβ¨
π¦ 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