Returns the retain count for the current process of an IOKit object.
- macOS 10.6+
- Mac Catalyst 13.0+
An IOKit object.
If the object handle is valid, the objects user retain count is returned, otherwise zero is returned.
This function may be used in diagnostics to determine the current retain count for the calling process of the kernel object.