Create an iterator rooted at 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.
The name of an existing registry plane. Plane names are defined in IOKitKeys.h, eg. kIOServicePlane.
kIORegistryIterateRecursively may be set to recurse automatically into each entry as it is returned from IOIteratorNext calls on the registry iterator.
A created iterator handle, to be released by the caller when it has finished with it.
A kern_return_t error code.
This method creates an IORegistryIterator in the kernel that is set up with options to iterate children of the registry root entry, and to recurse automatically into entries as they are returned, or only when instructed with calls to IORegistryIteratorEnterEntry. The iterator object keeps track of entries that have been recursed into previously to avoid loops.