IOConnectSetCFProperty

Function IOConnectSetCFProperty 

Source
pub unsafe extern "C-unwind" fn IOConnectSetCFProperty(
    connect: io_connect_t,
    property_name: Option<&CFString>,
    property: Option<&CFType>,
) -> kern_return_t
Available on crate feature libc only.
Expand description

Set a CF container based property on a connection.

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.

Parameter connect: The connect handle created by IOServiceOpen.

Parameter propertyName: The name of the property as a CFString.

Parameter 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.

Returns: A kern_return_t error code returned by the object.

ยงSafety

  • property_name might not allow None.
  • property should be of the correct type.
  • property might not allow None.