irq_set_affinity_notifier(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… irq_set_affinity_notifier(9) β€” the irq_set_affinity_notifier page, bestie edition πŸŽ€

okay so this is a Kernel API Manual page, the function lives in section 9, and honestly? it's a little baddie. let's get into it ✨


🌸 NAME 🌸

irq_set_affinity_notifier β€” control notification of IRQ affinity changes πŸ’«

like, it's the girl who tells you when your IRQ's affinity changed. she's the notifier. she notifies. periodt.


✨ SYNOPSIS ✨

int irq_set_affinity_notifier (unsigned int irq , struct
irq_affinity_notify *notify );

that's it. that's the whole signature. two args, one int coming back at you 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • irq β€” the interrupt you're enabling/disabling notification for. it's giving "main character interrupt" ngl, everything's about her πŸ’…
  • notify β€” the context for notification, or NULL to disable notification. ⚠️ and listen: the function pointers must be initialised by you. the other fields? this function handles those, she'll set them up for you. you just do the pointers, she does the rest. teamwork fr fr 🫢

πŸ’– DESCRIPTION πŸ’–

must be called in process context. no exceptions, bestie. 😭

and here's the timeline, write it down:

  • notification may only be enabled after the IRQ is allocated ✨
  • and it must be disabled before the IRQ is freed using free_irq πŸ’€

like... enable after allocate, disable before free. it's giving boundaries. respect the boundaries πŸ™ˆ


🌈 SEE ALSO 🌈

the whole friend group, okay, they all hang out together:


and that's the page!! πŸŽ€ this iconic little number comes from ./kernel/irq and it's dated October 2026 β€” so she's from the future, lowkey a time traveler πŸ‘‘πŸ’œ stay safe, init your function pointers, and free your IRQs after you disable the notifier. mwah πŸ’‹

πŸ“¦ where this page comes from