ata_dev_acpi_handle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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, the acpi_handle that 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 πŸ‘‘


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