acpi_irq_parse_one(9)
π NAME π
acpi_irq_parse_one β the glow-up where we figure out which interrupt a device is actually using π
okay so first things first, the manual name is Kernel API Manual (yes that's the vibe, we're in kernel-land now bestie) and this whole page is literally about Resolve an interrupt for a device. Iconic.
β¨ SYNOPSIS β¨
int acpi_irq_parse_one (acpi_handle handle , unsigned int index , struct
irq_fwspec *fwspec , unsigned long *flags );
π ARGUMENTS π
handleβ the device whose interrupt we're resolving, aka our main character for this function call π«Άindexβ which interrupt to resolve, like picking which one of the group chat's 47 unread messages you're actually gonna reply tofwspecβ astruct irq_fwspecthat this function fills in for you. she's getting populated while you watch, periodtflagsβ the resource flags, also filled in by this function. yes bestie, two output things, she's generous π
πΈ DESCRIPTION πΈ
So here's the tea β β acpi_irq_parse_one resolves an interrupt for a device by walking its CRS resources to find the appropriate ACPI IRQ resource, and then populating the given struct irq_fwspec and flags.
that's it. that's the whole vibe. she walks the CRS resources, she finds the right ACPI IRQ resource, she fills in your structs and flags. no notes. π
β RETURN β
The result stored in ctx.rc by the callback β or the default -EINVAL value if an error occurs π
ngl if you see -EINVAL coming back, something went sideways in the callback β¨
π¦ SEE ALSO π¦
Kernel file ./drivers/acpi/irq.c β the whole squad lives here, go say hi π
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_cb(9)acpi_irq_get(9)acpi_set_irq_model(9)acpi_set_gsi_to_irq_fallback(9)acpi_irq_create_hierarchy(9)
k bye bestie, stay resolving π
β¨ this one came straight out of ./drivers/acpi and it's dated October 2026 β so go forth, parse those interrupts, and slay ππΈ
π¦ 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