irq_set_affinity(9)
π irq_set_affinity(9) β a Kernel API Manual moment
okay so bestie, buckle up, we're in the Kernel API Manual today and the vibe is very "let me tell you which CPU your interrupt is gonna live on" π this one's short and sweet but it matters, no cap.
β¨ NAME β¨
irq_set_affinity β literally just sets the irq affinity of a given irq π that's it. that's the whole job. icon behaviour honestly.
π¦ SYNOPSIS π¦
int irq_set_affinity (unsigned int irq , const struct cpumask *cpumask
);
she takes two things and she returns an int, periodt.
πΈ ARGUMENTS πΈ
irqβ the interrupt you're setting affinity for. the main character of this whole operation πcpumaskβ the cpumask. yeah. it's the cpumask. that's the description. it's giving "trust me bro" but we move π
π DESCRIPTION π
the tea β: this one fails if cpumask does not contain an online CPU. that's the whole rule. no online CPU in your mask? nope, she's not doing it. hard pass. -EINVAL energy fr fr π
like, please actually put an online CPU in there bestie, she's not gonna manifest one for you β¨
π₯ SEE ALSO π₯
kernel file ./kernel/irq/manage.c β that's where she lives π and then the whole group chat of related functions, all ~9~ section buddies:
synchronize_hardirq(9)synchronize_irq(9)irq_can_set_affinity(9)irq_can_set_affinity_usr(9)irq_set_thread_affinity(9)irq_affinity_schedule_notify_work(9)irq_update_affinity_desc(9)irq_force_affinity(9)irq_set_affinity_notifier(9)irq_set_vcpu_affinity(9)disable_irq_nosync(9)disable_irq(9)disable_hardirq(9)disable_nmi_nosync(9)enable_irq(9)enable_nmi(9)irq_set_irq_wake(9)irq_wake_thread(9)free_irq(9)request_threaded_irq(9)request_any_context_irq(9)request_nmi(9)irq_percpu_is_enabled(9)free_percpu_irq(9)request_percpu_irq_affinity(9)request_percpu_nmi(9)prepare_percpu_nmi(9)teardown_percpu_nmi(9)irq_get_irqchip_state(9)irq_set_irqchip_state(9)irq_has_action(9)irq_check_status_bit(9)
and that's the whole page, bestie π
she's from ./kernel/irq, dated October 2026, and she ate. 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