Releases an object handle previously returned by IOKitLib.
- macOS 10.0+
- Mac Catalyst 13.0+
The IOKit object to release.
A kern_return_t error code.
All objects returned by IOKitLib should be released with this function when access to them is no longer needed. Using the object after it has been released may or may not return an error, depending on how many references the task has to the same object in the kernel.