lpfc_irq_rebalance(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_irq_rebalance(9) β€” like, the Kernel API Manual page, bestie πŸ’–

okay so this is lpfc_irq_rebalance(9) straight out of the Kernel API Manual, and it's lowkey the most unhinged little function because all it does is… shuffle IRQs around when a CPU ghosts you or comes back. iconic behavior honestly.


✨ NAME ✨

lpfc_irq_rebalance β€” rebalances IRQ affinity according to cpuhp event πŸŽ€

like yes queen, rearrange the interrupt vibes when the CPU situation changes.


πŸ¦‹ SYNOPSIS πŸ¦‹

void lpfc_irq_rebalance (struct lpfc_hba *phba , unsigned int cpu , bool
offline );

that's it. that's the whole signature. no return value, no drama, just vibes and three arguments πŸ’…


🌸 ARGUMENTS 🌸

  • phba β€” pointer to HBA context object. your main character struct fr fr, everything hangs off this.
  • cpu β€” cpu going offline/online. the CPU in question, the one having a moment.
  • offline β€” true, cpu is going offline. false, cpu is coming online. literally just a bool telling us which direction this is going 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜•

If cpu is going offline, we'll try our best effort to find the next online cpu on the phba's original_mask and migrate all offlining IRQ affinities. like, no cap, best effort β€” we're doing our best, we're not promising miracles, we're finding that next online cpu and moving the interrupt affinities over there. slay.

If cpu is coming online, reaffinitize the IRQ back to the onlining cpu. welcome back bestie, here's your IRQ again ✨


πŸ‘‘ NOTE πŸ‘‘

Call only if NUMA or NHT mode is enabled, otherwise rely on PCI_IRQ_AFFINITY to auto-manage IRQ affinity.

🚨 real talk: do not call this when neither NUMA nor NHT mode is on. in that case, PCI_IRQ_AFFINITY handles the auto-managing and you should just let it cook. periodt.

πŸ”₯ SEE ALSO πŸ”₯

It's in the kernel file ./drivers/scsi/lpfc/lpfc_init.c and honestly the friend group is HUGE, so buckle up 🎒 β€” every single one of these:


that's the whole squad πŸ’– and bestie, that's literally the entire page. ok bye, go rebalance those IRQs πŸŒˆπŸ’…

πŸŽ€ this cutie lives in ./drivers/scsi/lpfc, dated October 2026, and it's lpfc_irq_rebalance(9) from the Kernel API Manual. mwah πŸ’‹βœ¨
πŸ“¦ where this page comes from