getMediumWithType
Finds a medium object from a dictionary with a given type.
Declaration
static IONetworkMedium * getMediumWithType(
const OSDictionary *dict,
IOMediumType type,
IOMediumType mask = 0);Parameters
- dict:
The dictionary to look for a matching entry.
- type:
Search for an entry with this type.
- mask:
The don't care bits in IOMediumType. 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 type. An optional mask supplies the don't care bits.