irq_set_thread_affinity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– irq_set_thread_affinity(9) πŸ’–

okay bestie, this is the irq_set_thread_affinity(9) page from the Kernel API Manual, and it's literally about giving irq threads a lil nudge so they fix their own affinity. no cap, it's short and iconic. ✨


🌸 NAME 🌸

irq_set_thread_affinity β€” the function that notifies irq threads to adjust affinity πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

the whole signature is giving one-line main character energy:

void irq_set_thread_affinity (struct irq_desc *desc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • desc β€” the irq descriptor whose affinity has changed, periodt πŸ‘‘

✨ DESCRIPTION ✨

okay so the strategy is: just set IRQTF_AFFINITY and delegate the affinity setting to the interrupt thread itself. it's giving "you handle it, bestie" 🫢

we literally can not call set_cpus_allowed_ptr here because we're holding desc->lock, and this code can be called from hard interrupt context. so yeah, that's the whole reason β€” no cap. 😭

bestie, this is not the place to call set_cpus_allowed_ptr. the lock + hard-interrupt-context combo is the whole vibe check here. πŸ’…

🌈 SEE ALSO 🌈

Kernel file: ./kernel/irq/manage.c β€” and the whole squad is:


okay that's the whole page, bye bestie 🫢 this one comes from source ./kernel/irq, dated October 2026, and it's all about irq_set_thread_affinity(9). mwah πŸ’‹

πŸ“¦ where this page comes from