How do I know if interrupts are disabled?

Is there a way (or a useful feature) to find out if interrupts are disabled or not?

+4
source share
1 answer

You can use the irqs_disabled() function:

 #include <linux/irqflags.h> int i = irqs_disabled(); 
+7
source

Source: https://habr.com/ru/post/1441792/


All Articles