Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ptree_get_node_by_path(3picltre) [opensolaris man page]

ptree_get_node_by_path(3PICLTREE)			  PICL Plug-In Library Functions			 ptree_get_node_by_path(3PICLTREE)

NAME
ptree_get_node_by_path - get handle of node specified by PICL tree path SYNOPSIS
cc [ flag... ] file... -lpicltree [ library... ] #include <picltree.h> int ptree_get_node_by_path(const char *ptreepath, picl_nodehdl_t *nodeh); DESCRIPTION
The ptree_get_node_by_path() function copies the handle of the node in the PICL tree specified by the path given in ptreepath into the location nodeh. The syntax of a PICL tree path is: [def_propname:]/[def_propval[match_cond] ... ] where def_propname prefix is a shorthand notation to specify the name of the property whose value is specified in def_propval, and the match_cond expression specifies the matching criteria for that node in the form of one or more pairs of property names and values such as [@address][?prop_name[=prop_val] ... ] where '@' is a shorthand notation to refer to the device address, which is followed by the device addres value address. The address value is matched with the value of the property "bus-addr" if it exists. If no "bus-addr" property exists, then it is matched with the value of the property "UnitAddress". Use the '?' notation to limit explicitly the comparison to "bus-addr" or "UnitAddress" property. The expres- sion following '?' specifies matching property name and value pairs, where prop_name gives the property name and prop_val gives the prop- erty value for non PICL_PTYPE_VOID properties. The values for properties of type PICL_PTYPE_TABLE, PICL_PTYPE_BYTEARRAY, and PICL_PTYPE_REFERENCE cannot be specified in the match_cond expression. A "_class" property value of "picl" may be used to match nodes of all PICL classes. All valid paths must start at the root node denoted by '/'. If no prefix is specified for the path, then the prefix defaults to the "name" property. RETURN VALUES
Upon successful completion, 0 is returned. On failure, a non-negative integer is returned to indicate an error. PICL_NOTNODE is returned if there is no node corresponding to the specified path. ERRORS
PICL_INVALIDARG Invalid argument PICL_NOTNODE Not a node PICL_FAILURE General system failure ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
ptree_get_propval_by_name(3PICLTREE), attributes(5) SunOS 5.11 1 Aug 2000 ptree_get_node_by_path(3PICLTREE)

Check Out this Related Man Page

ptree_get_first_prop(3PICLTREE) 			  PICL Plug-In Library Functions			   ptree_get_first_prop(3PICLTREE)

NAME
ptree_get_first_prop, ptree_get_next_prop - get a property handle of the node SYNOPSIS
cc [ flag... ] file... -lpicltree [ library... ] #include <picltree.h> int ptree_get_first_prop(picl_nodehdl_t nodeh, picl_prophdl_t *proph); int ptree_get_next_prop(picl_prophdl_t proph, picl_prophdl_t *nextproph); DESCRIPTION
The ptree_get_first_prop() function gets the handle of the first property of the node specified by nodeh and copies it into the location specified by proph. The ptree_get_next_prop() function gets the handle of the next property after the one specified by proph from the list of properties of the node and copies it into the location specified by nextproph. RETURN VALUES
Upon successful completion, 0 is returned. On failure, a non-negative integer is returned to indicate an error. PICL_STALEHANDLE is returned if the handle is no longer valid. This occurs if the PICL tree was refreshed or reinitialized. PICL_INVALIDHANDLE is returned if the specified handle never existed. ERRORS
PICL_NOTPROP Not a property PICL_NOTNODE Not a node PICL_ENDOFLIST End of list PICL_INVALIDHANDLE Invalid handle PICL_STALEHANDLE Stale handle PICL_FAILURE General system failure ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
ptree_get_prop_by_name(3PICLTREE), attributes(5) SunOS 5.11 28 Mar 2000 ptree_get_first_prop(3PICLTREE)
Man Page