Contents

IOObjectGetClass(_:_:)

Return the class name of an IOKit object.

Declaration

func IOObjectGetClass(_ object: io_object_t, _ className: UnsafeMutablePointer<CChar>!) -> kern_return_t

Parameters

  • object:

    The IOKit object.

  • className:

    Caller allocated buffer to receive the name string.

Return Value

A kern_return_t error code.

Discussion

This function uses the OSMetaClass system in the kernel to derive the name of the class the object is an instance of.

See Also

Miscellaneous