读书人

set_irq_handler 和 set_irq_chained_

发布时间: 2012-02-12 17:16:34 作者: rapoo

set_irq_handler 和 set_irq_chained_handler
这2个函数都是用于注册中断处理程序,有什么区别?

[解决办法]

C/C++ code
/* * Set a highlevel flow handler for a given IRQ: */static inline voidset_irq_handler(unsigned int irq, irq_flow_handler_t handle){    __set_irq_handler(irq, handle, 0, NULL);}/* * Set a highlevel chained flow handler for a given IRQ. * (a chained handler is automatically enabled and set to *  IRQ_NOREQUEST and IRQ_NOPROBE) */static inline voidset_irq_chained_handler(unsigned int irq,            irq_flow_handler_t handle){    __set_irq_handler(irq, handle, 1, NULL);} 

读书人网 >UNIXLINUX

热点推荐