Contents

setProperty(const char *, unsigned long long, unsigned int)

Synchronized method to construct and add an OSNumber property to a registry entry's property table.

Declaration

virtual bool setProperty(
 const char *aKey, 
 unsigned long longaValue, 
 unsigned intaNumberOfBits);

Parameters

  • aKey:

    The property's name as a C-string.

  • aValue:

    The property's numeric value.

  • aNumberOfBits:

    The property's size in bits, for OSNumber.

Return Value

true on success or false on a resource failure.

Overview

This method will add or replace a property in a registry entry's property table, using the OSDictionary::setObject semantics. This method is synchronized with other IORegistryEntry accesses to the property table. The property is created as an OSNumber from the supplied value and size, set in the property table with the given name, and released.

See Also

Miscellaneous