pub unsafe extern "C-unwind" fn IOBSDNameMatching(
main_port: mach_port_t,
options: u32,
bsd_name: *const c_char,
) -> Option<CFRetained<CFMutableDictionary>>Available on crate feature
libc only.Expand description
Create a matching dictionary that specifies an IOService match based on BSD device name.
IOServices that represent BSD devices have an associated BSD name. This function creates a matching dictionary that will match IOService’s with a given BSD name.
Parameter mainPort: The main port obtained from IOMainPort(). Pass kIOMainPortDefault to look up the default main port.
Parameter options: No options are currently defined.
Parameter bsdName: The BSD name, as a const char *.
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.