set_irq_handler 和 set_irq_chained_handler

jxj141 2010-08-20 04:00:50
这2个函数都是用于注册中断处理程序,有什么区别?
...全文
302 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zshshr 2011-11-16
  • 打赏
  • 举报
回复
同问啊?
非级联中断和级联中断有什么区别?
http://www.diybl.com/course/6_system/linux/Linuxjs/2008926/145722.html
unsigned long flags; //中断标志,比如是否共享中断,电平触发还是边沿触发
jxj141 2010-08-22
  • 打赏
  • 举报
回复
非级联中断和级联中断有什么区别?
Wenxy1 2010-08-20
  • 打赏
  • 举报
回复

/*
* Set a highlevel flow handler for a given IRQ:
*/
static inline void
set_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 void
set_irq_chained_handler(unsigned int irq,
irq_flow_handler_t handle)
{
__set_irq_handler(irq, handle, 1, NULL);
}


非级联中断用set_irq_handler();
级联中断用set_irq_chained_handler().

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧