pub unsafe extern "C-unwind" fn IORegistryGetRootEntry(
main_port: mach_port_t,
) -> io_registry_entry_tAvailable on crate feature
libc only.Expand description
Return a handle to the registry root.
This method provides an accessor to the root of the registry for the machine. The root may be passed to a registry iterator when iterating a plane, and contains properties that describe the available planes, and diagnostic information for IOKit.
Parameter mainPort: The main port obtained from IOMainPort(). Pass kIOMainPortDefault to look up the default main port.
Returns: A handle to the IORegistryEntry root instance, to be released with IOObjectRelease by the caller, or MACH_PORT_NULL on failure.