of_irq_count(9)
π of_irq_count(9)
okay so this is a kernel API manual page, bestie β of_irq_count(9), live from the Kernel API Manual, and it's literally about counting IRQs on a device tree node π
β¨ NAME β¨
of_irq_count β count the number of IRQs a node uses π
like, that's it. that's the whole job. it counts. no cap.
πΈ SYNOPSIS πΈ
int of_irq_count (struct device_node *dev );
she takes one pointer and hands you back an int, periodt β¨
π¦ ARGUMENTS π¦
devβ pointer to device tree node π«Ά β this is the node you're asking about, the main character of the whole operation ngl
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/of/irq.c β that's where the magic happens, iykyk π
and here's the whole friend group, all the sibling functions you should absolutely go check out:
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(9)of_irq_get_byname(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)
fr fr, that's the whole page β no hidden options, no sneaky environment variables, no exit statuses, no bugs section, nothing. just vibes and one very good little counting function π
and that's a wrap, bestie!! π§ this one came from the ./drivers/of corner of the tree, dated October 2026, and it's filed under of_irq_count(9) π slay, go count some IRQs, you've got this πβ
π¦ 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