Return a handle to the registry root.
- macOS 10.0+
- Mac Catalyst 13.0+
The master port obtained from IOMasterPort(). Pass kIOMasterPortDefault to look up the default master port.
A handle to the IORegistryEntry root instance, to be released with IOObjectRelease by the caller, or MACH_PORT_NULL on failure.
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.