IOObjectCopyClass

Function IOObjectCopyClass 

Source
pub extern "C-unwind" fn IOObjectCopyClass(
    object: io_object_t,
) -> Option<CFRetained<CFString>>
Available on crate feature libc only.
Expand description

Return the class name of an IOKit object.

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

Parameter object: The IOKit object.

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