首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

set_irq_handler 和 set_irq_chained_handler解决办法

2012-02-12 
set_irq_handler 和 set_irq_chained_handler这2个函数都是用于注册中断处理程序,有什么区别?[解决办法]C/

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);} 

热点排行