ipi_get_hwirq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ipi_get_hwirq πŸ’…

okay bestie, welcome to the Kernel API Manual β€” section 9, no big deal, just your girl explaining how to grab the hwirq for an IPI headed to a CPU. iykyk πŸŽ€


✨ NAME ✨

ipi_get_hwirq β€” literally just: get the hwirq associated with an IPI to a CPU. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

irq_hw_number_t ipi_get_hwirq (unsigned int irq , unsigned int cpu );

copy it exactly like that, no cap. the spaces are part of the ~aesthetic~ and also part of the actual signature, so don't get cute with it πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • irq β€” the Linux IRQ number. yes, the normal one. the Linux-y one. 🐧
  • cpu β€” the target CPU. like, the CPU you're aiming at. main character CPU. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so here's the situation. when you're dealing with coprocessors and their IPIs, you gotta tell the coprocessor which hwirq it needs to use β€” both to receive and to send IPIs. that's it. that's the whole reason this function exists. it's giving middleman energy and honestly? iconic. ✨


πŸ”₯ RETURN πŸ”₯

on success you get the hwirq value πŸŽ‰

on failure you get INVALID_HWIRQ πŸ’€ β€” so like, check it. fr fr.


🌈 SEE ALSO 🌈

check out the kernel file ./kernel/irq/ipi.c for the whole squad:


🫢 friendly reminder bestie: this page lives in ./kernel/irq, and it's dated October 2026. that's the source/version deets and the date, all wrapped up cute so you never have to wonder. slay, go read ipi.c, mwah πŸ’œπŸ§š
πŸ“¦ where this page comes from