__irq_alloc_descs(9)
π __irq_alloc_descs β the kernel API manual bestie π
okay so this is from the Kernel API Manual, and it's literally the page for __irq_alloc_descs(9) β the function that allocates and initializes a whole range of irq descriptors. no cap, it's giving "reserve my spot" energy for interrupts π
β¨ NAME β¨
__irq_alloc_descs β allocate and initialize a range of irq descriptors π
πΈ SYNOPSIS πΈ
int __ref __irq_alloc_descs (int irq , unsigned int from , unsigned int cnt , int node , struct module *owner , const struct irq_affinity_desc *affinity );
π¦ ARGUMENTS π¦
irqβ ifirq >= 0, bestie, you're asking it to allocate for that specific irq number πfromβ the search starts from this irq number, like "begin the hunt here" π₯cntβ how many consecutive irqs you want allocated. yes, a whole squad of them π«Άnodeβ the preferred node where the irq descriptor should be allocated πownerβ the owning module, and it can beNULLβ lowkey optional, iconic behavior πaffinityβ optional pointer to an affinity mask array of sizecnt; it hints where the irq descriptors should be allocated and which default affinities to use β¨
π DESCRIPTION π
Returns the first irq number or an error code. that's the whole vibe β first irq number on success, error code when it's not slaying π
π SEE ALSO π
Kernel file ./kernel/irq/irqdesc.c and also these besties:
irq_get_nr_irqs(9)irq_set_nr_irqs(9)generic_handle_irq(9)generic_handle_irq_safe(9)generic_handle_domain_irq(9)generic_handle_domain_nmi(9)generic_handle_demux_domain_irq(9)irq_free_descs(9)irq_get_next_irq(9)kstat_irqs_cpu(9)kstat_irqs_usr(9)
and that's the page, bestie π sourced from ./kernel/irq, dated October 2026, and filed under __irq_alloc_descs(9) β periodt πβ¨
π¦ 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