Retains an object handle previously returned by IOKitLib.
SDKs
- macOS 10.1+
- Mac Catalyst 13.0+
Framework
- IOKit
Declaration
kern _return _t IOObjectRetain(io _object _t object);
Parameters
object
The IOKit object to retain.
Return Value
A kern_return_t error code.
Discussion
Gives the caller an additional reference to an existing object handle previously returned by IOKitLib.