acpi_irq_parse_one_cb(9)
π acpi_irq_parse_one_cb(9) π
okay bestie, welcome to the Kernel API Manual β weβre doing kernel resource-walk callback content today, and yes itβs giving very niche, very iconic. This page is literally about acpi_irq_parse_one_cb, and the vibe is βhandle the given resourceβ with zero fluff. π¦
β¨ NAME β¨
acpi_irq_parse_one_cb β Handle the given resource. (thatβs it, thatβs the name section, periodt π
)
πΈ SYNOPSIS πΈ
acpi_status acpi_irq_parse_one_cb (struct acpi_resource *ares , void
*context );
π ARGUMENTS π
aresβ resource to handle. Like, the resource bestie, the actual thing being handled.contextβ context for the walk. Keep it moving, no cap. π«Ά
π₯ DESCRIPTION π₯
okay so hereβs the lore: this callback is called by acpi_walk_resources, passing each resource returned by the _CRS method. We only inspect IRQ resources β thatβs the main character energy of this function.
Since IRQ resources might contain multiple interrupts, we check if the index is within this oneβs interrupt array. If itβs not, we subtract the current resource IRQ count from the lookup index to prepare for the next resource. (the way that index math has to happen is lowkey iconic π)
Once a match is found we call acpi_irq_parse_one_match to populate the result and end the walk by returning AE_CTRL_TERMINATE. slay, callback done. π
β¨
π RETURN π
AE_OKβ if the walk should continue.AE_CTRL_TERMINATEβ if a matching IRQ resource was found.
π SEE ALSO π
- Kernel file:
./drivers/acpi/irq.c acpi_gsi_to_irq(9)acpi_register_gsi(9)acpi_unregister_gsi(9)acpi_get_irq_source_fwhandle(9)acpi_irq_parse_one_match(9)acpi_irq_parse_one(9)acpi_irq_get(9)acpi_set_irq_model(9)acpi_set_gsi_to_irq_fallback(9)acpi_irq_create_hierarchy(9)
okay thatβs the whole page bestie π sourced from ./drivers/acpi, dated October 2026, and itβs the acpi_irq_parse_one_cb(9) entry from the Kernel API Manual. mwah π«Άπ
π¦ 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