Contents

matchPropertyTable

Allows a registered IOService object to implement family specific matching.

Declaration

virtual bool matchPropertyTable(
 OSDictionary *table, 
 SInt32 *score );

Parameters

  • table:

    The dictionary of properties to be matched against.

  • score:

    Pointer to the current driver's probe score, which is used to order multiple matching drivers in the same match category. It defaults to the value of the IOProbeScore property in the drivers property table, or kIODefaultProbeScore if none is specified.

Return Value

false if the family considers the matching dictionary does not match in properties it understands; true otherwise.

Overview

All matching on an IOService object will call this method to allow a family writer to implement matching in addition to the generic methods provided by IOService. The implementer should examine the matching dictionary passed to see if it contains properties the family understands for matching, and use them to match with the IOService object if so. Note that since matching is also carried out by other parts of the I/O Kit, the matching dictionary may contain properties the family does not understand - these should not be considered matching failures.

See Also

Miscellaneous