acpi_resource_consumer(9)
π acpi_resource_consumer(9) β from the Kernel API Manual, bestie
okay so real talk, this is a kernel API manual page and it's genuinely so useful. it's acpi_resource_consumer(9) and it answers the question every nosy little kernel dev asks: who's eating this resource?? ππ iykyk
β¨ NAME β¨
acpi_resource_consumer β find the ACPI device that consumes @res. like, the actual device that's munching on it. we love a good reverse-lookup moment π
πΈ SYNOPSIS πΈ
struct acpi_device * acpi_resource_consumer (struct resource *res );
look at her. iconic signature. no notes. π
π¦ ARGUMENTS π¦
resβ the resource you're searching for. that's it. that's the whole argument. she's lowkey the main character here π«Ά
π₯ DESCRIPTION π₯
okay so here's the vibe: the function goes through the current resource settings β that's _CRS β of every single ACPI device node, and it looks for res in each one. like a full-on group chat scroll looking for that one message. π±β¨
if it finds an ACPI device whose _CRS includes res, it returns that device. found your culprit, bestie. case closed. π
otherwise? it returns NULL. no device is claiming that resource. nothing. crickets. π¦π
that's literally it, no cap. simple, clean, does exactly what it says on the tin.
π SEE ALSO π
the kernel file lives at ./drivers/acpi/resource.c and honestly the whole friend group is worth knowing:
acpi_dev_resource_memory(9)acpi_dev_resource_io(9)acpi_dev_resource_address_space(9)acpi_dev_resource_ext_address_space(9)acpi_dev_irq_flags(9)acpi_dev_get_irq_type(9)acpi_dev_resource_interrupt(9)acpi_dev_free_resource_list(9)acpi_dev_get_resources(9)acpi_dev_get_dma_resources(9)acpi_dev_get_memory_resources(9)acpi_dev_filter_resource_type(9)
all of them. every single one. we don't skip the squad. ππ§
reminder bestie: this only searches current resource settings (_CRS) on ACPI device nodes. that's the whole scope. don't go expecting it to read your mind or anything π
mwah π that's the page! sourced straight from ./drivers/acpi, dated October 2026 β so go forth, find your consumers, and slay β¨ππ
π¦ 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