acpi_get_acpi_dev(9)
π 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:
acpi_scan_drop_device(9)acpi_fetch_acpi_dev(9)acpi_dma_supported(9)acpi_get_dma_attr(9)acpi_dma_get_range(9)acpi_dma_configure_id(9)acpi_walk_dep_device_list(9)acpi_dev_clear_dependencies(9)acpi_dev_ready_for_enumeration(9)acpi_dev_get_next_consumer_dev(9)acpi_bus_scan(9)acpi_bus_trim(9)
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
- 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