有什么方法(或有用的函数)可以知道中断是否被禁用?
您可以使用irqs_disabled()功能:
irqs_disabled()
#include <linux/irqflags.h> int i = irqs_disabled();