Contents

IORegistryEntryCreateCFProperty(_:_:_:_:)

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

Declaration

func IORegistryEntryCreateCFProperty(_ entry: io_registry_entry_t, _ key: CFString!, _ allocator: CFAllocator!, _ options: IOOptionBits) -> Unmanaged<CFTypeRef>!

Parameters

  • entry:

    The registry entry handle whose property to copy.

  • key:

    A CFString specifying the property name.

  • allocator:

    The CF allocator to use when creating the CF container.

  • options:

    No options are currently defined.

Return Value

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

Discussion

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.

See Also

Miscellaneous