Contents

IORegistryEntrySetCFProperty(_:_:_:)

Set a CF container based property in a registry entry.

Declaration

func IORegistryEntrySetCFProperty(_ entry: io_registry_entry_t, _ propertyName: CFString!, _ property: CFTypeRef!) -> kern_return_t

Parameters

  • entry:

    The registry entry whose property to set.

  • propertyName:

    The name of the property as a CFString.

  • property:

    A CF container - should consist of objects which are understood by IOKit - these are currently : CFDictionary, CFArray, CFSet, CFString, CFData, CFNumber, CFBoolean, and are passed in the kernel as the corresponding OSDictionary etc. objects.

Return Value

A kern_return_t error code returned by the object.

Discussion

This is a generic method to pass a CF container as a property to an object in the registry. Setting properties in a registry entry is not generally supported, it is more common to support IOConnectSetCFProperty for connection based property setting. The property is interpreted by the object.

See Also

Miscellaneous