pub unsafe extern "C-unwind" fn IOServiceMatching(
name: *const c_char,
) -> Option<CFRetained<CFMutableDictionary>>Expand description
Create a matching dictionary that specifies an IOService class match.
A very common matching criteria for IOService is based on its class. IOServiceMatching will create a matching dictionary that specifies any IOService of a class, or its subclasses. The class is specified by C-string name.
Parameter name: The class name, as a const C-string. Class matching is successful on IOService’s of this class or any subclass.
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.