acpi_irq_parse_one_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


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