Contents

IORegistryGetRootEntry(_:)

Return a handle to the registry root.

Declaration

func IORegistryGetRootEntry(_ mainPort: mach_port_t) -> io_registry_entry_t

Parameters

Return Value

A handle to the IORegistryEntry root instance, to be released with IOObjectRelease by the caller, or MACH_PORT_NULL on failure.

Discussion

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.

See Also

Miscellaneous