Contents

IOObjectGetKernelRetainCount(_:)

Returns kernel retain count of an IOKit object.

Declaration

func IOObjectGetKernelRetainCount(_ object: io_object_t) -> UInt32

Parameters

  • object:

    An IOKit object.

Return Value

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

Discussion

This function may be used in diagnostics to determine the current retain count of the kernel object at the kernel level.

See Also

Miscellaneous