Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Interface between resource manager in Neutrino and application: (3 Items)
   
Interface between resource manager in Neutrino and application  
I am new for QNX OS, and was wondering how a application gets an event notification from Resource Manager which monitors
 hardware interrupt triggering?

I think Resource Manager already has a thread to monitor the hardware interrupt triggering, when the thread is 
unblocking by hardware interrupt, how does it notify interrupt event to application, does it send a signal or a message 
by message send command? If application has to create another thread to call oi_read from Resource Manager it will be 
very low efficient.

Thanks,
Jerry
Re: Interface between resource manager in Neutrino and application  
hello Jerry,

I recommend you review the section on how to write an Interrupt Handler under QNX.

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_prog/inthandler.html

More specifically, see the APIs for InterruptAttach() and InterruptAttachEvent(), as they allow you to create the 
appropriate call-back mechanism for the notification that you are looking for.

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_lib_ref/i/interruptattach.html

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_lib_ref/i/interruptattachevent.html

cheers,
- Ed Lee
Re: Interface between resource manager in Neutrino and application  
Hi Ed,

Thank you for the quick response, based on your email a application should 
use an interrupt handler directly to the hardware handle interrupt event, 
if my understanding is correct, can you describe what scenario we should 
use resource manager?


Best regards,
Jerry



Edward Lee <community-noreply@qnx.com> 
06/29/2012 01:46 PM
Please respond to
general-community@community.qnx.com


To
general-community <general-community@community.qnx.com>
cc

Subject
Re: Interface between resource manager in Neutrino and application






hello Jerry,

I recommend you review the section on how to write an Interrupt Handler 
under QNX.

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_prog/inthandler.html


More specifically, see the APIs for InterruptAttach() and 
InterruptAttachEvent(), as they allow you to create the appropriate 
call-back mechanism for the notification that you are looking for.

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_lib_ref/i/interruptattach.html


http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_lib_ref/i/interruptattachevent.html


cheers,
- Ed Lee



_______________________________________________

General
http://community.qnx.com/sf/go/post93956
To cancel your subscription to this discussion, please e-mail 
general-community-unsubscribe@community.qnx.com

Attachment: HTML sf-attachment-mime2728 2.43 KB