IORegistryEntryCreateCFProperties

Function IORegistryEntryCreateCFProperties 

Source
pub unsafe extern "C-unwind" fn IORegistryEntryCreateCFProperties(
    entry: io_registry_entry_t,
    properties: *mut *mut CFMutableDictionary,
    allocator: Option<&CFAllocator>,
    options: IOOptionBits,
) -> kern_return_t
Available on crate feature libc only.
Expand description

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

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.

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

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

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

Parameter options: No options are currently defined.

Returns: A kern_return_t error code.