irq_get_next_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… irq_get_next_irq(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so you're in the kernel API manual, section 9, and today's main character is irq_get_next_irq ✨


🌸 NAME 🌸

irq_get_next_irq β€” gets you the next allocated irq number, no cap 🧚


✨ SYNOPSIS ✨

unsigned int irq_get_next_irq (unsigned int offset );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • offset β€” literally just where to start the search. that's it. that's the whole vibe. πŸ’«

πŸ’– DESCRIPTION πŸ’–

okay so picture this: you hand it an offset, and it hands you back the next irq number after that offset.

and if there's nothing there? if the cupboard is empty, bestie? 😭 it just returns total_nr_irqs instead. periodt.


πŸ”₯ SEE ALSO πŸ”₯

this is the friend group, iykyk πŸ‘‘ β€” the kernel file ./kernel/irq/irqdesc.c, plus:


ngl the whole thing lives in ./kernel/irq and it's giving icon energy β€” go read the rest, fr fr πŸ’…

and that's the page, bestie 🫢 it ate, no crumbs left. source filing lives in ./kernel/irq, dated October 2026, and it's the irq_get_next_irq(9) page β€” slay, bye πŸ’œπŸŒΈ

πŸ“¦ where this page comes from