STRUCT IRQ_AFFINITY_NOTIFY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct irq_affinity_notify(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's all about struct irq_affinity_notify, aka the little context blob that lets you get pinged when an IRQ's affinity changes πŸ¦‹ (yes, the kernel will literally text you about it, no cap).


✨ NAME ✨

struct irq_affinity_notify β€” the context for notification of IRQ affinity changes πŸ’–


🌸 SYNOPSIS 🌸

struct irq_affinity_notify {
    unsigned int irq;
    struct kref kref;
    struct work_struct work;
    void (*notify)(struct irq_affinity_notify *, const cpumask_t *mask);
    void (*release)(struct kref *ref);
 };

πŸŽ€ Members πŸŽ€

  • irq β€” the interrupt this notification applies to πŸ”₯ like, which IRQ are we gossiping about
  • kref β€” the reference count, for internal use πŸ™ˆ hands off, it's private
  • work β€” the work item, for internal use 🧚 also private, also not your business
  • notify β€” the function to be called on change πŸ’« and heads up: this will be called in process context
  • release β€” the function to be called on release πŸ“£ also called in process context. and bestie, listen: once it's registered, the structure must only be freed when this function is called or later πŸ‘‘ that's the rule, periodt

⭐ SEE ALSO ⭐

Kernel file ./include/linux/interrupt.h struct irqaction(9), request_irq(9), struct irq_affinity(9), struct irq_affinity_desc(9), irq_update_affinity_hint(9), irq_set_affinity_and_hint(9) 🌈 go read those next, iykyk


and that's the whole vibe check, bestie πŸ’œ this page came straight out of ./include/linux and it's dated October 2026 β€” so like, from the future, main character energy fr fr 🫢 slay, go notify somebody πŸ˜­πŸŽ€

πŸ“¦ where this page comes from