irq_matrix_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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