acpi_get_acpi_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, you're looking at the Kernel API Manual page for acpi_get_acpi_dev(9) ✨. The function is acpi_get_acpi_dev, and its whole thing is: Retrieve ACPI device object and reference count it. lowkey iconic, highkey important 🫢.

✨ SYNOPSIS ✨

struct acpi_device * acpi_get_acpi_dev (acpi_handle handle );

πŸŽ€ ARGUMENTS πŸŽ€

  • handle β€” the ACPI handle associated with the requested ACPI device object. That's the one you're asking about, bestie πŸŽ€.

🌸 DESCRIPTION 🌸

So here's the tea: it returns a pointer to the ACPI device object associated with handle, and it bumps up that object's reference counter (under the ACPI Namespace lock), if present. If it's not present? It returns NULL otherwise. no cap.

The ACPI device object reference you get from this function needs to be dropped via acpi_dev_put. That's not optional, bestie β€” it's literally the rule πŸ™ˆ.

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file is ./drivers/acpi/scan.c, and these are the related pages you might wanna peek at:


byeee 🫢 this cutie came from the Kernel API Manual, source ./drivers/acpi, dated October 2026, and it's all about acpi_get_acpi_dev(9) πŸ’œβœ¨

πŸ“¦ where this page comes from