ernel 中断调用关键词:request_irq int_return
request_irq 注册中断
<linux/interrupt.h>
int request_irq(
unsigned int irq; //中断号
irq_handler_t handler, // ISR, irq_handler_t为ISR关键字
unsigned long flag; // 关键 share 否
const char *name; //ASCii 名
void *dev //共享时的唯一标示
)
int_return 中断服务程序(interrupt handler or interrupt service routine ISR)
static irqreturn_t int_handler(int irq, void *dev)
#ISR是不重入的