acpi_get_irq...rce_fwhandle(9)
π acpi_get_irq...rce_fwhandle(9) π
okay bestie, so this is a page from the Kernel API Manual β yes, that manual, the kernel one, we're in the big leagues now π«Ά β and it's genuinely short and sweet, so grab a strawberry π and let's go.
β¨ NAME β¨
acpi_get_irq_source_fwhandle β Retrieve fwhandle from IRQ resource source.
like, the whole personality of this function is "give me the source, I'll give you the handle" and honestly? iconic. π
πΈ SYNOPSIS πΈ
struct fwnode_handle * acpi_get_irq_source_fwhandle (const struct
acpi_resource_source *source , u32 gsi );
one function, two arguments, zero drama. look at that return type β it's giving struct fwnode_handle * main character energy π
π¦ ARGUMENTS π¦
sourceβ theacpi_resource_sourceyou're using for the lookup. yeah, this one. it's your search key, bestie πgsiβ the GSI IRQ number. it's au32, it's a number, it's doing its job. no notes β¨
π DESCRIPTION π
So what does it actually do, you ask? It retrieves the fwhandle of the device referenced by the given IRQ resource source. that's it. that's the vibe check. literally just fetching the firmware handle for the device that the IRQ resource source points at. simple, clean, slay. π
π RETURN π
It hands you back the referenced device fwhandle, or NULL on failure. so likeβ¦ check for NULL, okay? don't be that person who forgets and then everything explodes π lowkey important.
fr fr, a NULL return means failure. that's not a hint, that's the contract. handle it. π
π SEE ALSO π
Kernel file ./drivers/acpi/irq.c, plus the whole friend group of ACPI IRQ functions β go say hi to all of them, they're all linked here and they all matter:
acpi_gsi_to_irq(9)acpi_register_gsi(9)acpi_unregister_gsi(9)acpi_irq_parse_one_match(9)acpi_irq_parse_one_cb(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)
and that's the whole page, bestie β short, sweet, and fully documented π§β¨
sign-off time: this one lives in ./drivers/acpi, and it's dated October 2026. go off, kernel girlies π
ππ₯
π¦ 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