IORegistryEntryCreateCFProperty

Function IORegistryEntryCreateCFProperty 

Source
pub unsafe extern "C-unwind" fn IORegistryEntryCreateCFProperty(
    entry: io_registry_entry_t,
    key: Option<&CFString>,
    allocator: Option<&CFAllocator>,
    options: IOOptionBits,
) -> Option<CFRetained<CFType>>
Available on crate feature libc only.
Expand description

Create a CF representation of a registry entry’s property.

This function creates an instantaneous snapshot of a registry entry property, creating a CF container analogue in the caller’s task. Not every object available in the kernel is represented as a CF container; currently OSDictionary, OSArray, OSSet, OSSymbol, OSString, OSData, OSNumber, OSBoolean are created as their CF counterparts.

Parameter entry: The registry entry handle whose property to copy.

Parameter key: A CFString specifying the property name.

Parameter allocator: The CF allocator to use when creating the CF container.

Parameter options: No options are currently defined.

Returns: A CF container is created and returned the caller on success. The caller should release with CFRelease.