Wait for a all IOServices' busyState to be zero.
SDKs
- macOS 10.0+
- Mac Catalyst 13.0+
Framework
- IOKit
Declaration
kern _return _t IOKitWaitQuiet(mach _port _t masterPort, mach _timespec _t *waitTime);
Parameters
masterPort
The master port obtained from
IOMaster
. PassPort k
to look up the default master port.IOMaster Port Default waitTime
Specifies a maximum time to wait.
Return Value
Returns an error code if mach synchronization primitives fail, k
, or k
.
Discussion
Blocks the caller until all IOServices are non busy, see IOKit
.