irq_set_affinity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


and that's the whole page, bestie πŸ’… she's from ./kernel/irq, dated October 2026, and she ate. mwah 🫢✨🌸

πŸ“¦ where this page comes from