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

MDI_GetLinkStatus()

Determine the status of the PHY link

Synopsis:

int MDI_GetStatusLink ( mdi_t  *mdi,
                        int PhyAddr );

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).

Description:

This function gets the link status of the PHY specified by PhyAddr.

Returns:

MDI_BADPARAM
PhyAddr is out of range.
MDI_LINK_UP
A valid link was detected.
MDI_LINK_DOWN
No link was detected.
MDI_LINK_UNKOWN
The link state isn't known.

Classification:

QNX Neutrino

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

See also:

MDI_Register(), MDI_Register_Extended()