Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法(或有用的功能)可以知道中断是否被禁用?
您可以使用irqs_disabled()功能:
irqs_disabled()
#include <linux/irqflags.h> int i = irqs_disabled();