of_irq_get(9)
πΈ NAME πΈ
okay so this page is of_irq_get(9), straight out of the Kernel API Manual, and itβs literally about decoding a nodeβs IRQ and returning it as a Linux IRQ number. bestie, thatβs the whole vibe. π
β¨
β¨ SYNOPSIS β¨
int of_irq_get (struct device_node *dev , int index );
π ARGUMENTS π
devβ pointer to device tree node π«Άindexβ zero-based index of the IRQ π―
π RETURN π
- Linux IRQ number on success π
0on the IRQ mapping failure π«-EPROBE_DEFERif the IRQ domain is not yet created β³- error code in case of any other failure π
no cap, that return list is giving βit dependsβ energy, so read it carefully before you spiral. π
π¦ SEE ALSO π¦
Kernel file ./drivers/of/irq.c and these iconic little references:
irq_of_parse_and_map(9)of_irq_find_parent(9)of_irq_parse_raw(9)of_irq_parse_one(9)of_irq_to_resource(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)
okay bye bestie π
this page lives under source/version ./drivers/of, dated October 2026 β go slay those IRQ decodes π«Άβ¨πΈ
π¦ 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