View topic - Notify resource manager from interrupt handler
Notify resource manager from interrupt handler
2 posts
• Page 1 of 1
Notify resource manager from interrupt handler
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!
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
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: 2287
- Joined: Wed Jun 25, 2003 5:18 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
