Contents

attachToChild

Method called in the parent entry when a child attaches.

Declaration

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

Parameters

  • child:

    The registry entry being attached.

  • plane:

    The plane object.

Return Value

true on success, or false on a resource failure, or if the parent is the same as the child.

Overview

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.

See Also

Miscellaneous