中断调用

来源:互联网 发布:java web九九乘法表 编辑:程序博客网 时间:2024/06/12 01:03

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是不重入的






0 0