Skip to contentSkip to conversation

question about disable_irq() and free_irq()

DISCUSSION Arend van Spriel 1 participant 1 message Aug 13, 2025

lore
Share & tools
lore
#0 lore raw

I have gone through the "Linux generic IRQ handling" page [1] but I could not find a definitive answer to my question. So hopefully you can clarify it for me.

I was wondering whether a disable_irq() must be followed by enable_irq(), leaving the nested disable out of this, or could one call free_irq() for a disabled irq.

Regards,
Arend

[1] https://docs.kernel.org/core-api/genericirq.html