Skip navigation.
Home
The QNX Community Portal

View topic - Funtion to get interrupt number from driver

Funtion to get interrupt number from driver

For the old QNX2 and QNX4 RTOS

Funtion to get interrupt number from driver

Postby sieudot » Mon Oct 20, 2014 3:54 am

Hi every one,

In QNX4, is there any funtion to get interrupt number assigned for a driver ?

Example, I have a driver, named "DriverA", running on system QNX 4.25.
And, I want to know what is interrupt number which was assigned for this driver "DriverA" ?

Is there any C funtion to get this number?

Thanks
sieudot
Active Member
 
Posts: 45
Joined: Thu Mar 17, 2005 8:14 am
Location: VietNam

Re: Funtion to get interrupt number from driver

Postby maschoen » Sat Oct 25, 2014 4:12 pm

There might be a parameter to sin which will give you this information. Try "use sin".
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: Funtion to get interrupt number from driver

Postby sieudot » Mon Oct 27, 2014 1:53 am

Yeah, thank for your reply. There is no C function for this, isn't it?

I will try using system("sin driverA") ^_^
sieudot
Active Member
 
Posts: 45
Joined: Thu Mar 17, 2005 8:14 am
Location: VietNam

Re: Funtion to get interrupt number from driver

Postby maschoen » Mon Oct 27, 2014 6:08 am

sieudot wrote:Yeah, thank for your reply. There is no C function for this, isn't it?

I will try using system("sin driverA") ^_^


If sin can find it, there must be a programatic way to get it. However it might be rather obscure. You might want to scan through any appropriately named .h files to look for a message that might provide this.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 2 guests