acpi_dev_re...ddress_space(9)
π acpi_dev_re...ddress_space(9) β Kernel API Manual β¨
okay so bestie, the full name got absolutely chopped in the page header (acpi_dev_re...ddress_space(9), they really did it dirty with that truncation π) but it's acpi_dev_resource_address_space and she's the main character of this whole page, iykyk. it's a Linux kernel function, and she's here to pull address space tea out of ACPI resource objects. let's get into it π«Ά
πΈ NAME πΈ
acpi_dev_resource_address_space β extract ACPI address space information. that's the whole vibe, no notes π
β¨ SYNOPSIS β¨
bool acpi_dev_resource_address_space (struct acpi_resource *ares ,
struct resource_win *win );
two args, one bool out. simple, iconic, no cap π
π ARGUMENTS π
aresβ your input ACPI resource object. this is the thing you're like "hmm, what even are you" about πwinβ your output generic resource object. this is where the info lands if the vibe check passes π
π¦ DESCRIPTION π¦
so here's what she does: she checks if the ACPI resource object you handed her (ares) actually represents an address space resource. if it does β and only if it does, don't get it twisted β she takes all the info inside it and uses it to populate the generic resource object pointed to by win. that's it. that's the function. she ate and left no crumbs π₯
π RETURN π
ooh okay, the returns are a little spicier than you'd think, so pay attention bestie:
falsewithwin->res.flagssetting to zero: not the expected resource type. basically "wrong number, wrong vibe" πfalsewithIORESOURCE_DISABLEDinwin->res.flags: valid unassigned resource. she's real, she's just not assigned yet πtrue: valid assigned resource. we love a happy ending ππ
π SEE ALSO π
the kernel file to go snoop in is ./drivers/acpi/resource.c, and here's the whole friend group:
acpi_dev_resource_memory(9)acpi_dev_resource_io(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)acpi_resource_consumer(9)
anyway that's the page, ily, go read ./drivers/acpi and stan the kernel β this one dropped October 2026, so mark your calendars bestie βππ
π¦ 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