Contents

IORegistryEntryCreateCFProperties(_:_:_:_:)

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

Declaration

func IORegistryEntryCreateCFProperties(_ entry: io_registry_entry_t, _ properties: UnsafeMutablePointer<Unmanaged<CFMutableDictionary>?>!, _ allocator: CFAllocator!, _ options: IOOptionBits) -> kern_return_t

Parameters

  • entry:

    The registry entry handle whose property table to copy.

  • properties:

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

  • allocator:

    The CF allocator to use when creating the CF containers.

  • options:

    No options are currently defined.

Return Value

A kern_return_t error code.

Discussion

This function creates an instantaneous snapshot of a registry entry's property table, creating a CFDictionary 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