irq_matrix_reserve_managed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… irq_matrix_reserve_managed β€” a kernel API manual moment πŸŽ€

okay so bestie, welcome to irq_matrix_reserve_managed(9), straight out of the Kernel API Manual ✨ this one is short and sweet and honestly kind of iconic for it πŸ’–


🌸 NAME 🌸

irq_matrix_reserve_managed β€” Reserve a managed interrupt in a CPU map πŸ—ΊοΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

int irq_matrix_reserve_managed (struct irq_matrix *m , const struct
       cpumask *msk );

like, that's the whole signature, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • m β€” Matrix pointer 🧚 the matrix in question, bestie
  • msk β€” On which CPUs the bits should be reserved. πŸ“ so like, which CPUs get the reservation vibes

🌈 DESCRIPTION 🌈

okay so the tea β˜•: you can call this for offline CPUs. fr fr, offline CPUs are welcome here 🫢

but listen β€” this will only reserve one bit on all CPUs in msk πŸ’€ and it's not guaranteed that the bits are at the same offset on all CPUs. so like, same vibe, different position 😭 don't assume they line up, that's the whole warning periodt πŸ‘‘


⭐ SEE ALSO ⭐

Kernel file ./kernel/irq/matrix.c and honestly the whole friend group 🫢:


πŸ“ reminder bestie: one bit per CPU in msk, and the offsets are not promised to match. that's it, that's the caveat πŸ’–

mwah πŸ’‹ this little page lives in ./kernel/irq and it was dated October 2026 β€” go forth and reserve those managed interrupts responsibly, queen πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from