acpi_dev_resource_interrupt(9)
okay bestie, welcome to the acpi_dev_resource_interrupt(9) page from the Kernel API Manual π
β¨ This is the one that extracts ACPI interrupt resource info, and it's lowkey iconic.
πΈ NAME πΈ
acpi_dev_resource_interrupt β Extract ACPI interrupt resource information.
π¦ SYNOPSIS π¦
bool acpi_dev_resource_interrupt (struct acpi_resource *ares , int index
, struct resource *res );
π ARGUMENTS π
aresβ input ACPI resource object. This is the resource we're checking, bestie.indexβ index into the array of GSIs represented by the resource. Basically which GSI slot we're looking at.resβ output generic resource object. This is the output glow-up spot.
π DESCRIPTION π
Check if the given ACPI resource object represents an interrupt resource and index does not exceed the resource's interrupt count β and true is returned in that case regardless of the results of the other checks, no cap. If that's the case, register the GSI corresponding to index from the array of interrupts represented by the resource and populate the generic resource object pointed to by res accordingly. If the registration of the GSI is not successful, IORESOURCE_DISABLED will be set it that object's flags β yes, that's the exact wording, and we are keeping every detail πβ¨
π₯ RETURN π₯
Okay, the return-value vibe check is literally:
falsewithres->flagssetting to zero: not the expected resource type.falsewithIORESOURCE_DISABLEDinres->flags: valid unassigned resource.true: valid assigned resource.
π SEE ALSO π
Kernel file ./drivers/acpi/resource.c plus the whole friend group:
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_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)
mwah π source/version ./drivers/acpi Β· date October 2026 Β· page acpi_dev_resource_interrupt(9) β bestie, that's the whole page, go be the main character of ACPI interrupt 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