Contents

dealiasPath

Strips any aliases from the head of path and returns the full path.

Declaration

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

Parameters

  • opath:

    An 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.

  • plane:

    A plane object must be specified.

Return Value

A C-string pointer to the value of the alias if one is found, or zero if not.

Overview

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.

See Also

Miscellaneous