acpi_dev_ge...ry_resources(9)
π acpi_dev_get_memory_resources β NAME π
okay so this is acpi_dev_get_memory_resources, and it lives in the Kernel API Manual (yes bestie, we're in the kernel docs now, act natural β¨). Its whole job? Get current memory resources of a device. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
int acpi_dev_get_memory_resources (struct acpi_device *adev , struct list_head *list );
like, look at her. she's a function signature and she's serving. π
π«Ά ARGUMENTS π«Ά
adevβ the ACPI device node we're grabbing the resources for. she's the main character here, the one we're digging through. πlistβ head of the resultant list of resources. heads up tho: this list must be empty before you hand it over. no cap, it has to be empty. π
πΈ DESCRIPTION πΈ
so basically this is a little helper function πββοΈ that goes and locates all memory type resources of adev using acpi_dev_get_resources. it's giving "personal assistant who knows exactly where everything is". π¦
the way it reports back? on success it returns the number of resources in the output list. and if something goes sideways, you get an error code reflecting the error condition instead. π so like, read your return value, bestie, it's telling you something. β
π SEE ALSO π
the whole friend group, fr fr β kernel file ./drivers/acpi/resource.c plus:
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_filter_resource_type(9)acpi_resource_consumer(9)
the squad is fully assembled, iykyk. π
and that's the page!! π brought to you by ./drivers/acpi, dated October 2026 β periodt, go touch some memory resources ππΈ
π¦ 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