Contents

IOObjectGetUserRetainCount(_:)

Returns the retain count for the current process of an IOKit object.

Declaration

func IOObjectGetUserRetainCount(_ object: io_object_t) -> UInt32

Parameters

  • object:

    An IOKit object.

Return Value

If the object handle is valid, the objects user retain count is returned, otherwise zero is returned.

Discussion

This function may be used in diagnostics to determine the current retain count for the calling process of the kernel object.

See Also

Miscellaneous