Trigger Kernel Interrupt Handler: How?

和自甴很熟 提交于 2019-12-04 11:10:17

问题


I am trying to understand Asynchronous Interrupt handling in kernel, ofcourse through the legendary Understanding the Linux Kernel.

In this process how and who will trigger Kernel Interrupt Handler?

I would like some one to help me correcting this and to clarify my question on 1)How and Who trigger Kernel Interrupt Handler? 2)How to define new or change existing hardware interrupt handlers?

Thank you in Advance!


回答1:


This picture from Robert Love's "Linux Kernel Development" pretty well describes path of interrupt. Processor interrupts the kernel in the predefined enty point do_IRQ(). If there is corresponding interrupt handler, it will get executed.

To handle interrupt, you should register your interrupt handler with request_irq().



来源:https://stackoverflow.com/questions/17783022/trigger-kernel-interrupt-handler-how

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!