Contents

IOConnectSetCFProperty(_:_:_:)

Set a CF container based property on a connection.

Declaration

func IOConnectSetCFProperty(_ connect: io_connect_t, _ propertyName: CFString!, _ property: CFTypeRef!) -> kern_return_t

Parameters

  • connect:

    The connect handle created by IOServiceOpen.

  • 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 property to the connection. The property is interpreted by the family and commonly represent configuration settings, but may be interpreted as anything.

See Also

Miscellaneous