Contents

compareName

Compares the name of the entry with one name, and optionally returns the matching name.

Declaration

virtual bool compareName(
 OSString *name,
 OSString **matched = 0 ) const;

Parameters

  • name:

    The name to compare with as an OSString.

  • matched:

    If the caller wants the successfully matched name returned, pass a non-zero pointer for the matched parameter and an OSString will be returned here. It should be released by the caller. Generally, this will be the same as the name parameter, but may not be if wildcards are used.

Return Value

True if the name compared true with the entry's global name.

Overview

This method is called during IOService name matching and elsewhere from the compareNames method. It should be overridden to provide non-standard name matching.

See Also

Miscellaneous