hwitag_find_ivec()

Updated: October 26, 2022

Find the interrupt vector associated with a device

Synopsis:

#include <drvr/hwinfo.h>

unsigned hwitag_find_ivec( unsigned hwi_off,
                           unsigned *irq );

Arguments:

hwi_off
The offset into the hwinfo section of the system page for the device, which you can get by calling hwi_find_device().
irq
A pointer to a location that specifies the index of interrupt vector; see below.

Library:

libdrvr

Use the -l drvr option to qcc to link against this library.

Description:

You can use hwitag_find_ivec() to find one or more interrupt vectors associated with the device at hwi_off in the hwinfo section of the system page. You can get the hwi_off parameter by calling hwi_find_device().

Some devices contain multiple interrupt vectors. You can retrieve all of them by using the ivec_idx parameter as follows:

Returns:

The interrupt vector, or HWI_ILLEGAL_VECTOR if the vector isn't found.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes