Functions



attachToChild

Abstract: Method called in the parent entry when a child attaches.
public:

virtual bool attachToChild( IORegistryEntry * child, const IORegistryPlane * plane );

This method is called in the parent entry when a child attaches, to make overrides possible. This method will also call attachToParent in the child entry if it is not being called from attachToParent. It is a no-op and success if the entry is already a child. Attaching the entry into the registry retains both the child and parent while they are attached.

Parameters

NameDescription
childThe registry entry being attached.
planeThe plane object.
Result: true on success, or false on a resource failure, or if the parent is the same as the child.

attachToParent

Abstract: Attaches a entry to a parent entry in a plane.
public:

virtual bool attachToParent( IORegistryEntry * parent, const IORegistryPlane * plane );

This is the usual method of entering an entry into the registry. It is a no-op and success if the entry is already attached to the parent. Attaching the entry into the registry retains both the child and parent while they are attached. This method will call attachToChild in the parent entry if it is not being called from attachToChild.

Parameters

NameDescription
parentThe registry entry to attach to.
planeThe plane object.
Result: true on success, or false on a resource failure, or if the parent is the same as the child.

compareName

Abstract: Compares the name of the entry with one name, and optionally returns the matching name.
public:

virtual bool compareName( OSString * name, OSString ** matched = 0 ) const;

This method is called during IOService name matching and elsewhere from the compareNames method. It should be overridden to provide non-standard name matching.

Parameters

NameDescription
nameThe name to compare with as an OSString.
matchedIf the caller wants the successfully matched name returned, pass a non-zero pointer for the matched parameter and an OSString will be returned here. It should be released by the caller. Generally, this will be the same as the name parameter, but may not be if wildcards are used.
Result: True if the name compared true with the entry's global name.

compareNames

Abstract: Compares the name of the entry with one or more names, and optionally returns the matching name.
public:

virtual bool compareNames( OSObject * name, OSString ** matched = 0 ) const;

This method is called during IOService name matching and elsewhere to compare the entry's global name with a list of names, or a single name. A list of names may be passed as any OSCollection of OSStrings, while a single name may be passed an OSString, in the name parameter. compareNames will call the compareName method for each name, for overrides.

Parameters

NameDescription
nameThe name or names to compare with as any OSCollection (eg. OSArray, OSSet, OSDictionary) of OSStrings, or a single name may be passed an OSString.
matchedIf the caller wants the successfully matched name returned, pass a non-zero pointer for the matched parameter and an OSString will be returned here. It should be released by the caller.
Result: True if one of the names compared true with the entry's global name.

copyLocation

Abstract: Returns the location string assigned to the registry entry as an OSSymbol.
public:

virtual const OSSymbol * copyLocation( const IORegistryPlane * plane = 0 ) const;

Entries can given a location string in a particular plane, or globally. If the entry has had a location set in a plane and the plane is specified that location string will be returned, otherwise the global location string is returned. If no global location string has been set, zero is returned.

Parameters

NameDescription
planeThe plane object, or zero for the global name.
Result: A reference to an OSSymbol for the location if one exists, which should be released by the caller, or zero.

copyName

Abstract: Returns the name assigned to the registry entry as an OSSymbol.
public:

virtual const OSSymbol * copyName( const IORegistryPlane * plane = 0 ) const;

Entries can be named in a particular plane, or globally. If the entry is named in plane and the plane is specified that name will be returned, otherwise the global name is returned. The global name defaults to the entry's meta class name if it has not been named.

Parameters

NameDescription
planeThe plane object, or zero for the global name.
Result: A reference to an OSSymbol for the name, which should be released by the caller.

dealiasPath

Abstract: Strips any aliases from the head of path returns the full path.
public:

static const char * dealiasPath( const char ** opath, const IORegistryPlane * plane );

If the path specified begins with an alias found in the /aliases entry, the value of the alias is returned, and a pointer into the passed in path after the alias is passed back to the caller. If an alias is not found, zero is returned and the path parameter is unchanged.

Parameters

NameDescription
opathAn in/out paramter - the caller passes in a pointer to a C-string pointer to a path. If an alias is found, dealiasPath returns a pointer into the path just beyond the end of the alias.
planeA plane object must be specified.
Result: A C-string pointer to the value of the alias if one is found, or zero if not.

detachAbove

Abstract: Detaches an entry from all its parent entries in a plane.
public:

virtual void detachAbove( const IORegistryPlane * plane );

This method calls detachFromParent in the entry for each of its parent entries in the plane.

Parameters

NameDescription
planeThe plane object.

detachAll

Abstract: Detaches an entry and all its children recursively in a plane.
public:

virtual void detachAll( const IORegistryPlane * plane );

This method breaks the registry connections for a subtree. detachAbove is called in the entry, and all child entries and their children in the plane.

Parameters

NameDescription
planeThe plane object.

detachFromChild

Abstract: Detaches a child entry from its parent in a plane.
public:

virtual void detachFromChild( IORegistryEntry * child, const IORegistryPlane * plane );

This method is called in the parent entry when a child detaches, to make overrides possible. It is a no-op if the entry is not a child of the parent. Detaching the entry will release both the child and parent. This method will call detachFromParent in the child entry if it is not being called from detachFromParent.

Parameters

NameDescription
parentThe registry entry to detach.
planeThe plane object.

detachFromParent

Abstract: Detaches an entry from a parent entry in a plane.
public:

virtual void detachFromParent( IORegistryEntry * parent, const IORegistryPlane * plane );

This is the usual method of removing an entry from the registry. It is a no-op if the entry is not attached to the parent. Detaching the entry will release both the child and parent. This method will call detachFromChild in the parent entry if it is not being called from detachFromChild.

Parameters

NameDescription
parentThe registry entry to detach from.
planeThe plane object.

dictionaryWithProperties

Abstract: Synchronized method to obtain copy a registry entry's property table.
public:

virtual OSDictionary * dictionaryWithProperties( void ) const;

This method will copy a registry entry's property table, using the OSDictionary::withDictionary semantics. This method is synchronized with other IORegistryEntry accesses to the property table. Since OSDictionary will only copy property values by reference, synchronization is not guaranteed to any collection values.

Result: The created dictionary, or zero on a resource value. It should be released by the caller.

free

Abstract: Standard free method for all IORegistryEntry subclasses.
public:

virtual void free( void );

This method will release any resources of the entry, in particular its property table. Note that the registry entry must always be detached from the registry before free may be called, and subclasses (namely IOService) will have additional protocols for removing registry entries. free should never need be called directly.


fromPath

Abstract: Looks up a registry entry by relative path.
public:

virtual IORegistryEntry * childFromPath( const char * path, const IORegistryPlane * plane = 0, char * residualPath = 0, int * residualLength = 0 );

This function looks up a entry below the called entry by a relative path. It is just a convenience that calls IORegistryEntry::fromPath with this as the fromEntry parameter.

Parameters

NameDescription
pathSee IORegistryEntry::fromPath.
planeSee IORegistryEntry::fromPath.
residualPathSee IORegistryEntry::fromPath.
residualLengthSee IORegistryEntry::fromPath.
Result: See IORegistryEntry::fromPath.

fromPath

Abstract: Looks up a registry entry by path.
public:

static IORegistryEntry * fromPath( const char * path, const IORegistryPlane * plane = 0, char * residualPath = 0, int * residualLength = 0, IORegistryEntry * fromEntry = 0 );

This function parses paths to lookup registry entries. The path may begin with the : created by getPath, or the plane may be set by the caller. If there are characters remaining unparsed after an entry has been looked up, this may be considered an invalid lookup, or those characters may be passed back to the caller and the lookup successful.

Parameters

NameDescription
pathA C-string path.
planeThe plane to lookup up the path, or zero, in which case the path must begin with the plane name.
residualPathIf the path may contain residual characters after the last path component, the residual will be copied back to the caller's residualPath buffer. If there are residual characters and no residual buffer is specified, fromPath will fail.
residualLengthAn in/out parameter - the caller sets the length of the residual buffer available, and fromPath returns the total length of the residual path copied to the buffer. If there is no residualBuffer (residualPath = 0) then residualLength may be zero also.
fromEntryThe lookup will proceed rooted at this entry if non-zero, otherwise it proceeds from the root of the plane.
Result: A retained registry entry is returned on success, or zero on failure. The caller should release the entry.

getChildEntry

Abstract: Returns an registry entry's first child entry in a plane.
public:

virtual IORegistryEntry * getChildEntry( const IORegistryPlane * plane ) const;

This function will return the child which first attached to a registry entry.

Parameters

NameDescription
planeThe plane object.
Result: Returns the first child of the registry entry, or zero if the entry is not attached into the registry in that plane. The child is retained while the entry is attached, and should not be released by the caller.

getChildIterator

Abstract: Returns an iterator over an registry entry's child entries in a plane.
public:

virtual OSIterator * getChildIterator( const IORegistryPlane * plane ) const;

This method creates an iterator which will return each of a registry entry's child entries in a specified plane.

Parameters

NameDescription
planeThe plane object.
Result: Returns an iterator over the children of the entry, or zero if there is a resource failure. The iterator must be released when the iteration is finished. All objects returned by the iteration are retained while the iterator is valid, though they may no longer be attached during the iteration.

getDepth

Abstract: Counts the maximum number of entries between an entry and the registry root, in a plane.
public:

virtual unsigned int getDepth( const IORegistryPlane * plane ) const;

This method counts the number of entries between and entry and the registry root, in a plane, for each parent of the entry and returns the maximum value.

Parameters

NameDescription
planeThe plane object.
Result: The maximum number of entries between the entry and the root. Zero is returned if the entry is not attached in the plane.

getGenerationCount

Abstract: Returns an generation count for all registry changing operations.
public:

static SInt32 getGenerationCount( void );

This method provides an accessor to the current generation count (or seed) of the registry which changes when any topology change occurs in the registry - this does not include property table changes. It may be used to invalidate any caching of the results from IORegistryEntry methods.

Result: An integer generation count.

getLocation

Abstract: Returns the location string assigned to the registry entry as a C-string.
public:

virtual const char * getLocation( const IORegistryPlane * plane = 0 ) const;

Entries can given a location string in a particular plane, or globally. If the entry has had a location set in a plane and the plane is specified that location string will be returned, otherwise the global location string is returned. If no global location string has been set, zero is returned.

Parameters

NameDescription
planeThe plane object, or zero for the global name.
Result: A C-string location string, valid while the entry is retained, or zero.

getName

Abstract: Returns the name assigned to the registry entry as a C-string.
public:

virtual const char * getName( const IORegistryPlane * plane = 0 ) const;

Entries can be named in a particular plane, or globally. If the entry is named in plane and the plane is specified that name will be returned, otherwise the global name is returned. The global name defaults to the entry's meta class name if it has not been named.

Parameters

NameDescription
planeThe plane object, or zero for the global name.
Result: A C-string name, valid while the entry is retained.

getParentEntry

Abstract: Returns an registry entry's first parent entry in a plane.
public:

virtual IORegistryEntry * getParentEntry( const IORegistryPlane * plane ) const;

This function will return the parent to which a registry entry was first attached. Since the majority of registry entrys have only one provider, this is a useful simplification.

Parameters

NameDescription
planeThe plane object.
Result: Returns the first parent of the registry entry, or zero if the entry is not attached into the registry in that plane. The parent is retained while the entry is attached, and should not be released by the caller.

getParentIterator

Abstract: Returns an iterator over an registry entry's parent entries in a specified plane.
public:

virtual OSIterator * getParentIterator( const IORegistryPlane * plane ) const;

Parameters

NameDescription
planeThe plane object.
Result: Returns an iterator over the parents of the registry entry, or zero if there is a resource failure. The iterator must be released when the iteration is finished. All objects returned by the iteration are retained while the iterator is valid, though they may no longer be attached during the iteration.

getPath

Abstract: Create a path for a registry entry.
public:

virtual bool getPath( char * path, int * length, const IORegistryPlane * plane) const;

The path for a registry entry is copied to the caller's buffer. The path describes the entry's attachment in a particular plane, which must be specified. The path begins with the plane name followed by a colon, and then followed by '/' separated path components for each of the entries between the root and the registry entry. Each component is constructed with the getPathComponent method called in each entry. An alias may also exist for the entry, which are described as properties in a registry entry found at /aliases in the plane. If a property value interpreted as a path in a call to IORegistryEntry::fromPath yields the entry, then the property name is used as the entry's path.

Parameters

NameDescription
pathA char buffer allocated by the caller.
lengthAn in/out parameter - the caller sets the length of the buffer available, and getPath returns the total length of the path copied to the buffer.
planeThe plane object.
Result: getPath will fail if the entry is not attached in the plane, or if the buffer is not large enough to contain the path.

getPathComponent

Abstract: Create a path component for a registry entry.
public:

virtual bool getPathComponent( char * path, int * length, const IORegistryPlane * plane ) const;

Each component of a path created with getPath is created with getPathComponent. The default implementation concatenates the entry's name in the the plane, with the "at" symbol and the location string of the entry in the plane if it has been set.

Parameters

NameDescription
pathA char buffer allocated by the caller.
lengthAn in/out parameter - the caller sets the length of the buffer available, and getPathComponent returns the total length of the path component copied to the buffer.
planeThe plane object.
Result: true if the path fits into the supplied buffer or false on a overflow.

getPlane

Abstract: Looks up the plane object by a C-string name.
public:

static const IORegistryPlane * getPlane( const char * name );

Planes are usually provided as globals by the creator, eg. gIOServicePlane, gIODeviceTreePlane, or gIOAudioPlane, however they may also be looked up by name with this method.

Result: A pointer to the plane object, or zero if no such plane exists. The returned plane should not be released.

getProperty

Abstract: Synchronized method to obtain a property from a registry entry's property table.
public:

virtual OSObject * getProperty( const OSSymbol * aKey) const;

This method will lookup a property in a registry entry's property table, using the OSDictionary::getObject semantics. This method is synchronized with other IORegistryEntry accesses to the property table.

Parameters

NameDescription
aKeyThe property's name as a OSymbol.
Result: The property value found, or zero.

getProperty

Abstract: Synchronized method to obtain a property from a registry entry's property table.
public:

virtual OSObject * getProperty( const OSString * aKey) const;

This method will lookup a property in a registry entry's property table, using the OSDictionary::getObject semantics. This method is synchronized with other IORegistryEntry accesses to the property table.

Parameters

NameDescription
aKeyThe property's name as anOSString.
Result: The property value found, or zero.

getProperty

Abstract: Synchronized method to obtain a property from a registry entry's property table.
public:

virtual OSObject * getProperty( const char * aKey) const;

This method will lookup a property in a registry entry's property table, using the OSDictionary::getObject semantics. This method is synchronized with other IORegistryEntry accesses to the property table.

Parameters

NameDescription
aKeyThe property's name as a C-string.
Result: The property value found, or zero.

getPropertyTable

Abstract: Unsynchronized accessor to a registry entry's property table.
public:

inline OSDictionary * getPropertyTable( void ) const { return(fPropertyTable); }

This method will return a pointer to the live property table as an OSDictionery. Its use is not recommended in most cases, instead use the synchronized accessors and helper functions of IORegistryEntry to access properties. It can only safely be used by one thread, which usually means it can only be used before a registry entry is entered into the registry.

Result: A pointer to the property table as an OSDictionary. The pointer is valid while the registry entry is retained, and should not be released by the caller.

getRegistryRoot

Abstract: Returns a pointer to the root instance of the registry.
public:

static IORegistryEntry * getRegistryRoot( void );

This method provides an accessor to the root of the registry for the machine. The root may be passed to a registry iterator when iterating a plane, and contains properties that describe the available planes, and diagnostic information for IOKit. Keys for these properties are in IOKitKeys.h.

Result: A pointer to the IORegistryEntry root instance. It should not be released by the caller.

inPlane

Abstract: Determines whether a registry entry is attached in a plane.
public:

virtual bool inPlane( const IORegistryPlane * plane ) const;

This method determines if the entry is attached in a plane to any other entry.

Parameters

NameDescription
planeThe plane object.
Result: If the entry has a parent in the plane, true is returned, otherwise false is returned.

init

Abstract: Standard init method for all IORegistryEntry subclasses.
public:

virtual bool init( OSDictionary * dictionary = 0 );

A registry entry must be initialized with this method before it can be used. A property dictionary may passed and will be retained by this method for use as the registry entry's property table, or an empty one will be created.

Parameters

NameDescription
Adictionary that will become the registry entry's property table (retaining it), or zero which will cause an empty property table to be created.
Result: true on success, or false on a resource failure.

isChild

Abstract: Determines whether a registry entry is the child of another in a plane.
public:

virtual bool isChild( IORegistryEntry * child, const IORegistryPlane * plane, bool onlyChild = false ) const;

This method called in the parent entry determines if the specified entry is a child, in a plane. Additionally, it can check if the child is the only child of the parent entry.

Parameters

NameDescription
childThe possible child registry entry.
planeThe plane object.
onlyChildIf true, check also if the child is the only child.
Result: If the child argument is not a child of the registry entry, false is returned. If onlyChild is true and the child is not the only child of the entry, false is returned, otherwise true is returned.

isParent

Abstract: Determines whether a registry entry is the parent of another in a plane.
public:

virtual bool isParent( IORegistryEntry * parent, const IORegistryPlane * plane, bool onlyParent = false ) const;

This method called in the child entry determines if the specified entry is a parent, in a plane. Additionally, it can check if the parent is the only parent of the child entry.

Parameters

NameDescription
parentThe possible parent registry entry.
planeThe plane object.
onlyParentIf true, check also if the parent is the only parent.
Result: If the parent argument is not a parent of the registry entry, false is returned. If onlyParent is true and the parent is not the only parent of the entry, false is returned, otherwise true is returned.

removeProperty

Abstract: Synchronized method to remove a property from a registry entry's property table.
public:

virtual void removeProperty( const char * aKey);

This method will remove a property from a registry entry's property table, using the OSDictionary::removeObject semantics. This method is synchronized with other IORegistryEntry accesses to the property table.

Parameters

NameDescription
aKeyThe property's name as a C-string.

removeProperty

Abstract: Synchronized method to remove a property from a registry entry's property table.
public:

virtual void removeProperty( const OSSymbol * aKey);

This method will remove a property from a registry entry's property table, using the OSDictionary::removeObject semantics. This method is synchronized with other IORegistryEntry accesses to the property table.

Parameters

NameDescription
aKeyThe property's name as an OSSymbol.

removeProperty

Abstract: Synchronized method to remove a property from a registry entry's property table.
public:

virtual void removeProperty( const OSString * aKey);

This method will remove a property from a registry entry's property table, using the OSDictionary::removeObject semantics. This method is synchronized with other IORegistryEntry accesses to the property table.

Parameters

NameDescription
aKeyThe property's name as an OSString.

serializeProperties

Abstract: Synchronized method to serialize a registry entry's property table.
public:

virtual bool serializeProperties( OSSerialize * serialize ) const;

This method will serialize a registry entry's property table, using the OSDictionary::serialize semantics. This method is synchronized with other IORegistryEntry accesses to the property table. Many non-kernel clients of IOKit read information from the registry via properties, and will invoke this method in a registry entry to create a serialization of all the entry's properties, which is then reconstructed in the client's task as a CFDictionary. This method may be intercepted by subclasses to update their properties or implement a different serialization method, though it is usually better to implement such functionality by creating objects in the property table and implementing their serialize methods, avoiding any need to implement serializeProperties.

Parameters

NameDescription
serializeThe OSSerialize instance representing the serialization request.
Result: True on success, false otherwise.

setLocation

Abstract: Sets a location string for the registry entry, in a particular plane, or globally.
public:

virtual void setLocation( const OSSymbol * location, const IORegistryPlane * plane = 0 );

Entries can be given a location string in a particular plane, or globally. If the plane is specified the location applies only to that plane, otherwise the global location is set. The location string may be used during path lookups of registry entries, to distinguish between sibling entries with the same name. The default IORegistryEntry parsing of location strings expects a list of hex numbers separated by commas, though subclasses of IORegistryEntry might do their own parsing.

Parameters

NameDescription
locationA C-string location string which will be copied, or an OSSymbol which will be retained.
planeThe plane object, or zero to set the global location string.

setName

Abstract: Sets a name for the registry entry, in a particular plane, or globally.
public:

virtual void setName( const OSSymbol * name, const IORegistryPlane * plane = 0 );

Entries can be named in a particular plane, or globally. If the plane is specified the name applies only to that plane, otherwise the global name is set. The global name defaults to the entry's meta class name if it has not been named.

Parameters

NameDescription
nameAn OSSymbol which will be retained.
planeThe plane object, or zero to set the global name.

setName

Abstract: Sets a name for the registry entry, in a particular plane, or globally.
public:

virtual void setName( const char * name, const IORegistryPlane * plane = 0 );

Entries can be named in a particular plane, or globally. If the plane is specified the name applies only to that plane, otherwise the global name is set. The global name defaults to the entry's meta class name if it has not been named.

Parameters

NameDescription
nameA const C-string name which will be copied.
planeThe plane object, or zero to set the global name.

setProperties

Abstract: Optionally supported external method to set properties in a registry entry.
public:

virtual IOReturn setProperties( OSObject * properties );

This method is not implemented by IORegistryEntry, but is available to kernel and non-kernel clients to set properties in a registry entry. IOUserClient provides connection based, more controlled access to this functionality and may be more appropriate for many uses, since there is no differentiation between clients available to this method.

Parameters

NameDescription
propertiesAny OSObject subclass, to be interpreted by the implementing method - for example an OSDictionary, OSData etc. may all be appropriate.
Result: An IOReturn code to be returned to the caller.

setProperty

Abstract: Synchronized method to construct and add an OSBoolean property to a registry entry's property table.
public:

virtual bool setProperty(const char * aKey, bool aBoolean);

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 OSBoolean from the supplied value, set in the property table with the given name, and released.

Parameters

NameDescription
aKeyThe property's name as a C-string.
aBooleanThe property's boolean value.
Result: true on success or false on a resource failure.

setProperty

Abstract: Synchronized method to add a property to a registry entry's property table.
public:

virtual bool setProperty(const char * aKey, OSObject * anObject);

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.

Parameters

NameDescription
aKeyThe property's name as a C-string.
anObjectThe property value.
Result: true on success or false on a resource failure.

setProperty

Abstract: Synchronized method to construct and add a OSString property to a registry entry's property table.
public:

virtual bool setProperty(const char * aKey, const char * aString);

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 OSString from the supplied C-string, set in the property table with the given name, and released.

Parameters

NameDescription
aKeyThe property's name as a C-string.
aStringThe property value as a C-string.
Result: true on success or false on a resource failure.

setProperty

Abstract: Synchronized method to add a property to a registry entry's property table.
public:

virtual bool setProperty(const OSString * aKey, OSObject * anObject);

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.

Parameters

NameDescription
aKeyThe property's name as an OSString.
anObjectThe property value.
Result: true on success or false on a resource failure.

setProperty

Abstract: Synchronized method to add a property to a registry entry's property table.
public:

virtual bool setProperty(const OSSymbol * aKey, OSObject * anObject);

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.

Parameters

NameDescription
aKeyThe properties name as an OSSymbol.
anObjectThe property value.
Result: true on success or false on a resource failure.

setProperty

Abstract: Synchronized method to construct and add an OSData property to a registry entry's property table.
public:

virtual bool setProperty( const char * aKey, void * bytes, unsigned int length);

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 OSData copied from the supplied date and length, set in the property table with the given name, and released.

Parameters

NameDescription
aKeyThe property's name as a C-string.
bytesThe property's value as a pointer. OSData will copy this data.
lengthThe property's size in bytes, for OSData.
Result: true on success or false on a resource failure.

setProperty

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

virtual bool setProperty( const char * aKey, unsigned long long aValue, unsigned int aNumberOfBits);

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.

Parameters

NameDescription
aKeyThe property's name as a C-string.
aValueThe property's numeric value.
aNumberOfBitsThe property's size in bits, for OSNumber.
Result: true on success or false on a resource failure.

setPropertyTable

Abstract: Replace a registry entry's property table.
public:

virtual void setPropertyTable( OSDictionary * dict );

This method will release the current property table of a the entry and replace it with another, retaining the new property table.

Parameters

NameDescription
dictThe new dictionary to be used as the entry's property table.

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)