LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Registering two handler for one intrrupt (https://www.linuxquestions.org/questions/programming-9/registering-two-handler-for-one-intrrupt-4175440246/)

nakul 12-06-2012 05:06 AM

Registering two handler for one intrrupt
 
hi all,

I am using C language and wanted to know whether it is possible to register two different handlers for the same intrrupt. If yes, than what we will be the system behavior.

Thanks

evgenyz 12-06-2012 06:48 AM

Can I ask you why you need 2 handlers for same interrupt?

nakul 12-07-2012 12:02 AM

hi,

Actually we are trying to port 'Udhcpc' to our embedded linux application. But in source code of Udhcp, we've found that it has registered some interrupts with its handlers, which was already been registered by our application. Thus i had doubt about such scenerios.

evgenyz 12-07-2012 04:09 AM

I don't think it's possible. Just add you code to existent handler.

Reuti 12-07-2012 08:18 AM

Are you speaking here of hardware interrupts or signals?

sundialsvcs 12-07-2012 08:42 AM

The first-level interrupt handler can launch more than one second-level response to it, depending on the situation and architecture. Most commonly the second level response is a chain of subroutine-calls.


All times are GMT -5. The time now is 05:48 PM.