Contents

IOObjectCopyBundleIdentifierForClass(_:)

Return the bundle identifier of the given class.

Declaration

func IOObjectCopyBundleIdentifierForClass(_ classname: CFString!) -> Unmanaged<CFString>!

Parameters

  • classname:

    The name of the class as a CFString.

Return Value

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

Discussion

This function uses the OSMetaClass system in the kernel to derive the name of the kmod, which is the same as the bundle identifier.

See Also

Miscellaneous