of_irq_to_resource(9)
π¦ of_irq_to_resource(9) π¦
hii bestie, welcome to the Kernel API Manual β today's main character is of_irq_to_resource(9), and she is literally here to decode. no cap.
π NAME π
of_irq_to_resource β Decode a node's IRQ and return it as a resource. that's the whole vibe: IRQ in, resource out, slay.
β¨ SYNOPSIS β¨
okay so the signature is literally this, character for character:
int of_irq_to_resource (struct device_node *dev , int index , struct resource *r );
π ARGUMENTS π
devβ pointer to device tree node. it's giving "start here" energy, fr fr.indexβ zero-based index of the irq. yes bestie, zero-based, so the first one is0, periodt.rβ pointer to resource structure to return result into. this is where the result goes to live its best life.
π₯ SEE ALSO π₯
Kernel file ./drivers/of/irq.c β and here's the friend group, all iconic:
irq_of_parse_and_map(9)of_irq_find_parent(9)of_irq_parse_raw(9)of_irq_parse_one(9)of_irq_get(9)of_irq_get_byname(9)of_irq_count(9)of_irq_to_resource_table(9)of_irq_init(9)of_msi_xlate(9)of_msi_map_get_device_domain(9)of_msi_get_domain(9)of_msi_configure(9)
mwah π this page is from source/version ./drivers/of, dated October 2026. bye bestie, go decode those IRQs π
π¦ 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