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
attachToChildattachToParentchildFromPathcompareNamecompareNamescopyChildEntrycopyLocationcopyNamecopyParentEntrycopyProperty(const char *)copyProperty(const char *, const IORegistryPlane *, IOOptionBits)copyProperty(const OSString *)copyProperty(const OSString *, const IORegistryPlane *, IOOptionBits)copyProperty(const OSSymbol *)copyProperty(const OSSymbol *, const IORegistryPlane *, IOOptionBits)detachAbovedetachAlldetachFromChilddetachFromParentdictionaryWithPropertiesfreefromPath(const char *, const IORegistryPlane *, char *, int *)fromPath(const char *, const IORegistryPlane *, char *, int *, IORegistryEntry *)getChildEntrygetChildIteratorgetDepthgetGenerationCountgetLocationgetNamegetParentEntrygetParentIteratorgetPathgetPathComponentgetPlanegetProperty(const char *)getProperty(const char *, const IORegistryPlane *, IOOptionBits)getProperty(const OSString *)getProperty(const OSString *, const IORegistryPlane *, IOOptionBits)getProperty(const OSSymbol *)getProperty(const OSSymbol *, const IORegistryPlane *, IOOptionBits)getPropertyTablegetRegistryEntryIDgetRegistryRootinitinPlaneisChildisParentmakePlaneremovePropertyremoveProperty(const OSString *)removeProperty(const OSSymbol *)runPropertyActionserializePropertiessetLocationsetName(const char *, const IORegistryPlane *)setName(const OSSymbol *, const IORegistryPlane *)setPropertiessetPropertysetProperty(const char *, bool)setProperty(const char *, const char *)setProperty(const char *, OSObject *)setProperty(const char *, unsigned long long, unsigned int)setProperty(const OSString *, OSObject *)setProperty(const OSSymbol *, OSObject *)setPropertyTable