Skip navigation.
Home
The QNX Community Portal

View topic - Notify resource manager from interrupt handler

Notify resource manager from interrupt handler

anything that doesn't fit to other groups.

Notify resource manager from interrupt handler

Postby gauten » Wed Feb 15, 2012 1:49 pm

Hello,

I have a PCI 4 ch. CANbus-card that I'm writing a resource manager for.
When the card receives data on one of the channels it generates an interrupt indicating that data is available to read.

Currently I have registered "/dev/can0", "/dev/can1", "/dev/can2" and "/dev/can3" in the QNX filesystem

What I want is a client program to be able to do a select() to wait for data on any of the channels.
But I can't figure out how to notify the resource manager that a data is available from my interrupt handler thread.

Any help would be greatly appreciated!
gauten
New Member
 
Posts: 1
Joined: Wed Feb 15, 2012 1:37 pm

Re: Notify resource manager from interrupt handler

Postby maschoen » Thu Feb 16, 2012 9:59 am

I'm quite sure that select() is sitting in Receive mode waiting for a pulse.
I don't know what the proper protocol is for select() to work properly.
If you are stuck on using select() you will have to figure this out.
But if not, you can make up your own protocol.
The client sets things up by sending a message with a pulse id and then waits for the pulse in Receive mode.
maschoen
QNX Master
 
Posts: 2517
Joined: Wed Jun 25, 2003 5:18 pm


Return to General Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron