Contents

IOObjectCopyClass(_:)

Return the class name of an IOKit object.

Declaration

func IOObjectCopyClass(_ object: io_object_t) -> Unmanaged<CFString>!

Parameters

  • object:

    The IOKit object.

Return Value

The resulting CFStringRef. This should be released by the caller. If a valid object is not passed in, then NULL is returned.

Discussion

This function does the same thing as IOObjectGetClass, but returns the result as a CFStringRef.

See Also

Miscellaneous