Contents

setLocation

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

Declaration

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

Parameters

  • location:

    A C-string location string which will be copied, or an OSSymbol which will be retained.

  • plane:

    The plane object, or zero to set the global location string.

Overview

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.

See Also

Miscellaneous