Contents

IOServiceNameMatching(_:)

Create a matching dictionary that specifies an IOService name match.

Declaration

func IOServiceNameMatching(_ name: UnsafePointer<CChar>!) -> CFMutableDictionary!

Parameters

  • name:

    The IOService name, as a const C-string.

Return Value

The matching dictionary created, is returned on success, or zero on failure. The dictionary is commonly passed to IOServiceGetMatchingServices or IOServiceAddNotification which will consume a reference, otherwise it should be released with CFRelease by the caller.

Discussion

A common matching criteria for IOService is based on its name. IOServiceNameMatching will create a matching dictionary that specifies an IOService with a given name. Some IOServices created from the device tree will perform name matching on the standard compatible, name, model properties.

See Also

Miscellaneous