IOServiceNameMatching

Function IOServiceNameMatching 

Source
pub unsafe extern "C-unwind" fn IOServiceNameMatching(
    name: *const c_char,
) -> Option<CFRetained<CFMutableDictionary>>
Expand description

Create a matching dictionary that specifies an IOService name match.

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.

Parameter name: The IOService name, as a const C-string.

Returns: 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.