hwitag_find_phyaddr()

Updated: May 06, 2022

Find the PHY address associated with a device

Synopsis:

#include <drvr/hwinfo.h>

int hwitag_find_phyaddr( unsigned hwi_off,
                         unsigned *phy_idx );

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().
phy_idx
NULL, or a pointer to a location that holds the index of the PHY address that you want to find; see below.

Library:

libdrvr

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

Description:

You can use hwitag_find_phyaddr() to find one or more PHY addresses associated with the device at hwi_off in the hwinfo section of the system page.

Some devices contain multiple PHY addresses. You can retrieve all of them by using the phy_idx parameter as follows:

Returns:

the PHY address on success or -1 on error.

Classification:

QNX Neutrino

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