irq_matrix_alloc(9)
π irq_matrix_alloc(9) β a Kernel API Manual moment π
ok so bestie, welcome to irq_matrix_alloc(9), straight out of the Kernel API Manual. this is the page for allocating a regular interrupt in a CPU map, and honestly? she's iconic, she's focused, she does one thing. periodt. β¨
πΈ NAME πΈ
irq_matrix_alloc β allocate a regular interrupt in a CPU map π¦
like. that's the whole vibe. one job. no cap.
β SYNOPSIS β
int irq_matrix_alloc (struct irq_matrix *m , const struct cpumask *msk ,
bool reserved , unsigned int *mapped_cpu );
that's the whole signature, copy it exactly, do NOT freestyle it, i'm begging π
π ARGUMENTS π
ok so here's who's on the cast list:
mβ the matrix pointer π§ this is the actual matrix you're working on, bestie. the main character.mskβ which CPUs to search in π like, the search zone. the eligible pool. you pick where she's allowed to look.reservedβ allocate previously reserved interrupts π set this and you're going shopping in the reserved aisle specifically.mapped_cpuβ pointer to store the CPU for which the irq was allocated π this is where the answer goes. it gets written to. that's the whole point of it.
ngl the mapped_cpu one is lowkey the most important vibe-wise β if you're not passing a real pointer, what are you even doing π
π₯ SEE ALSO π₯
the whole friend group, fr fr β it's all in the kernel file ./kernel/irq/matrix.c:
irq_alloc_matrix(9)irq_matrix_online(9)irq_matrix_offline(9)irq_matrix_assign_system(9)irq_matrix_reserve_managed(9)irq_matrix_remove_managed(9)irq_matrix_alloc_managed(9)irq_matrix_assign(9)irq_matrix_reserve(9)irq_matrix_remove_reserved(9)irq_matrix_free(9)irq_matrix_available(9)irq_matrix_reserved(9)irq_matrix_allocated(9)irq_matrix_debug_show(9)
the way that's a whole squad ππ«Ά go read them, iykyk.
ok that's the page!! mwah π this one came to you from the source path ./kernel/irq, dated October 2026, living under the Kernel API Manual banner β and that's the cute lil sign-off, bestie. go allocate something pretty. ππ
π¦ 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