Contents

getMediumWithIndex

Finds a medium object from a dictionary with a given index.

Declaration

static IONetworkMedium * getMediumWithIndex(
 const OSDictionary *dict, 
 UInt32 index, 
 UInt32 mask = 0);

Parameters

  • dict:

    The dictionary to look for a matching entry.

  • index:

    Search for an entry with the given index.

  • mask:

    The don't care bits in index. Defaults to 0, which implies that a perfect match is desired.

Return Value

Returns the first matching IONetworkMedium entry found, or 0 if no match was found.

Overview

This method iterates through a dictionary and returns an IONetworkMedium entry with the given index. An optional mask supplies the don't care bits.

See Also

Miscellaneous