STRUCT IRQ_AFFINITY_NOTIFY(9)
π 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 aboutkrefβ the reference count, for internal use π hands off, it's privateworkβ the work item, for internal use π§ also private, also not your businessnotifyβ the function to be called on change π« and heads up: this will be called in process contextreleaseβ 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
- 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