hwi_find_devicebus()

Find the bus that a device belongs to

Synopsis:

#include <drvr/hwinfo.h>

unsigned hwi_find_devicebus( unsigned device_hwi_off);

Arguments:

device_hwi_off
The offset of the hardware information for the device.

Library:

libdrvr

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

Description:

The hwi_find_devicebus() function finds the bus that the device device_hwi_off resides on. This function ensures that device_hwi_off is in fact a device and that its “owner” is in fact a bus.

Note that although we used the name “bus” to be consistent with previous nomenclature, from a topology perscpective, we actually mean any interconnect to which a device is connected.

Returns:

The hwinfo section offset, or HWI_NULL_OFF if the bus/device instance doesn't exist.

Classification:

QNX Neutrino

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

See also:

hwi_find(), hwi_find_bus(), hwi_find_device(), hwi_find_num_units(), hwi_find_unit(), hwi_tag_find(), hwiattr_get(), hwiattr_get_*(), hwitag_find_busattr(), hwitag_find_clkfreq(), hwitag_find_errata(), hwitag_find_ivec(), hwitag_find_nicaddr(), hwitag_find_phyaddr()