Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Reg: qnx_hint_attach(): (2 Items)
   
Reg: qnx_hint_attach()  
I had doubt regarding the interrupt handler..

My board(device) had two channels and the irq line is allocated for the board. In driver, I had attach the proxy for 
each channel using qnx_proxy_attach() and the same ISR is registered for both the channels using qnx_hint_attach(). The 
proxy is returned to application based on the interrupt of the respective channel.

I used two process in my application using fork() and wait for interrupt using Creceive(). 

Let me know whether the ISR is registered twice?

because, What is the problem is when the interrupt occurs the handler attached last is handle most of the interrupt.

But when i run it as seperate application in different consoles( channel 1 - transmitter, channel 2 - receiver) , both 
the ISR got invoked. what is the difference if the application is are run in different console?

Regards,
K.Kandasamy.
RE: qnx_hint_attach()  
If you proxy_attach and hint_attach before you fork, then the main
process will receive all the interrupts, which is what you are seeing.


-----Original Message-----
From: kanda samy [mailto:community-noreply@qnx.com] 
Sent: Thursday, December 10, 2009 1:18 AM
To: qnx4-community
Subject: Reg: qnx_hint_attach()


I had doubt regarding the interrupt handler..

My board(device) had two channels and the irq line is allocated for the
board. In driver, I had attach the proxy for each channel using
qnx_proxy_attach() and the same ISR is registered for both the channels
using qnx_hint_attach(). The proxy is returned to application based on
the interrupt of the respective channel.

I used two process in my application using fork() and wait for interrupt
using Creceive(). 

Let me know whether the ISR is registered twice?

because, What is the problem is when the interrupt occurs the handler
attached last is handle most of the interrupt.

But when i run it as seperate application in different consoles( channel
1 - transmitter, channel 2 - receiver) , both the ISR got invoked. what
is the difference if the application is are run in different console?

Regards,
K.Kandasamy.



_______________________________________________

QNX4 Community Support
http://community.qnx.com/sf/go/post43476