IORegistryEntryFromPath

Function IORegistryEntryFromPath 

Source
pub unsafe extern "C-unwind" fn IORegistryEntryFromPath(
    main_port: mach_port_t,
    path: *mut [c_char; 512],
) -> io_registry_entry_t
Available 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 ’ :’ If there are characters remaining unparsed after an entry has been looked up, this is considered an invalid lookup. Paths are further documented in IORegistryEntry.h

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.