Returns the busyState of all IOServices.
- macOS 10.0+
- Mac Catalyst 13.0+
The master port obtained from IOMasterPort(). Pass kIOMasterPortDefault to look up the default master port.
The busyState count is returned.
A kern_return_t error code.
Many activities in IOService are asynchronous. When registration, matching, or termination is in progress on an IOService, its busyState is increased by one. Change in busyState to or from zero also changes the IOService's provider's busyState by one, which means that an IOService is marked busy when any of the above activities is ocurring on it or any of its clients. IOKitGetBusyState returns the busy state of the root of the service plane which reflects the busy state of all IOServices.