Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

MDI_GetActiveMedia()

Store the active media type for PhyAddr

Synopsis:

int MDI_GetActiveMedia ( mdi_t * mdi,
                       int PhyAddr,
                       int *Media)

Arguments:

mdi
A pointer to the mdi_t structure obtained from MDI_Register() or MDI_Register_Extended().
phyAddr
The physical address of the physical layer device (PHY).
Media
A pointer to the media-type specified. Possible media types are:

Description:

The MDI_GetActiveMedia() function stores the curently active media-type for the PHY that the media address specifies.

Returns:

MDI_BADPARAM
PhyAddr is out of range.
MDI_LINK_DOWN
No valid link was detected.
MDI_LINK_UP
A valid link was detected, and the link-media type was stored at the address pointed to by media.

Classification:

QNX Neutrino

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

See also:

MDI_Register(), MDI_Register_Extended()