pub unsafe extern "C-unwind" fn IORegistryEntryFromPath(
main_port: mach_port_t,
path: *mut [c_char; 512],
) -> io_registry_entry_tAvailable on crate feature
libc only.Expand description
Looks up a registry entry by path.
This function parses paths to lookup registry entries. The path should begin with ’
Parameter mainPort: The main port obtained from IOMainPort(). Pass kIOMainPortDefault to look up the default main port.
Parameter path: A C-string path.
Returns: A handle to the IORegistryEntry which was found with the path, to be released with IOObjectRelease by the caller, or MACH_PORT_NULL on failure.
§Safety
path Array TODO.