Contents

compareProperties

Compares a set of properties in a matching dictionary with an IOService object's property table.

Declaration

virtual bool compareProperties(
 OSDictionary *matching, 
 OSCollection *keys );

Parameters

  • matching:

    The matching dictionary, which must be non-zero.

  • keys:

    A collection (eg. OSSet, OSArray, OSDictionary) which should contain OSStrings (or OSSymbols) that specify the property keys to be compared.

Return Value

Success if compareProperty returns true for each key in the collection; otherwise failure.

Overview

This is a helper function to aid in implementing matchPropertyTable. A collection of dictionary keys specifies properties in a matching dictionary to be compared, with compareProperty, with an IOService object's property table, if compareProperty returns true for each key, success is returned; otherwise failure.

See Also

Miscellaneous