__irq_alloc_descs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __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 β€” if irq >= 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 be NULL β€” lowkey optional, iconic behavior πŸ’€
  • affinity β€” optional pointer to an affinity mask array of size cnt; 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:


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