ipi_get_hwirq(9)
π 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:
irq_reserve_ipi(9)irq_destroy_ipi(9)__ipi_send_single(9)__ipi_send_mask(9)ipi_send_single(9)ipi_send_mask(9)
π«Ά 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 readipi.c, mwah ππ§
π¦ 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