of_irq_parse_raw(9)
π
of_irq_parse_raw β like, the manual page, bestie
Ok so you're looking at of_irq_parse_raw(9) from the Kernel API Manual, and honestly? She's a lowkey legend. Let's get into it π«Ά
β¨ NAME β¨
of_irq_parse_raw β low-level interrupt tree parsing. That's it, that's the vibe. π³
πΈ SYNOPSIS πΈ
int of_irq_parse_raw (const __be32 *addr , struct of_phandle_args
*out_irq );
Like, that's the whole signature, no cap. Copy it exactly, don't get cute with it π
π ARGUMENTS π
addrβ the address specifier, and by that we mean the start of the"reg"property of the device, in be32 format. Big-endian girlie β¨out_irqβ astruct of_phandle_argsthat this function updates. She comes in as a struct and leaves updated, main character energy π
π¦ DESCRIPTION π¦
So here's the tea: this function is a low-level interrupt tree walking function. Like, it literally walks the tree. Iconic behaviour honestly π
You can use it to do a partial walk with synthesized reg and interrupts properties β for example when you're resolving PCI interrupts and there's no device node existing for the parent. Situationship with the tree, iykyk π
What it actually does: it takes an interrupt specifier structure as input, walks the tree looking for any interrupt-map properties, translates the specifier for each map, and then returns the translated map. Slay, she translated it π₯
β RETURN β
0 on success and a negative number on error. Simple as that, fr fr π
π NOTE π
Heads up bestie β the refcount of the node out_irq->np is increased by 1 on success. So like, don't forget about her, she's holding a reference now π
π§ SEE ALSO π§
Kernel file ./drivers/of/irq.c β plus this whole friend group:
irq_of_parse_and_map(9)of_irq_find_parent(9)of_irq_parse_one(9)of_irq_to_resource(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)
Ok that's the whole page, you ate that π This cutie came out of ./drivers/of and she's stamped October 2026 β so mark your calendar, bestie, and go parse some interrupt trees πβ¨π
π¦ 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