Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

picl_get_node_by_path(3picl) [sunos man page]

picl_get_node_by_path(3PICL)				      PICL Library Functions				      picl_get_node_by_path(3PICL)

NAME
picl_get_node_by_path - get handle of node specified by PICL tree path SYNOPSIS
cc [ flag... ] file... -lpicl [ library... ] #include <picl.h> int picl_get_node_by_path(const char *piclpath, picl_nodehdl_t *nodeh); DESCRIPTION
The picl_get_node_by_path() function copies the handle of the node in the PICL tree specified by the path given in piclpath into the loca- tion nodeh. The syntax of a PICL tree path is: [<def_propname>:]/[<def_propval>[<match_cond>]... ] where the <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 or a FRU's location label and is followed by <address>, which gives the device address or the location label. For nodes under the /platform tree, the address value is matched with the value of the property bus-addr, if it exists. If no bus-addr property exists, the address value is matched with the value of the property UnitAddress. To explicitly limit the comparison to bus-addr or UnitAddress property, use the '?' notation described below. For nodes under the /frutree tree, the <address> value is matched with the value of the Label property. The expression following '?' specifies matching property name and value pairs, where <prop_name> specifies the property name and <prop_val> specifies the property value for properties not of type PICL_PTYPE_VOID. 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 can be used to match nodes of any PICL classes. The class picl is the base class of all the classes in PICL. All valid paths must begin at the root node denoted by '/'. If no prefix is specified for the path, the prefix defaults to the name property. RETURN VALUES
Upon successful completion, 0 is returned. Otherwise a non-negative integer is returned to indicate an error. The value PICL_NOTNODE is returned if there is no node corresponding to the specified path. ERRORS
PICL_FAILURE General system failure PICL_INVALIDARG Invalid argument PICL_NOTNODE Not a node ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
picl_get_propval_by_name(3PICL), attributes(5) SunOS 5.10 5 Feb 2004 picl_get_node_by_path(3PICL)

Check Out this Related Man Page

picl_get_prop_by_name(3PICL)				      PICL Library Functions				      picl_get_prop_by_name(3PICL)

NAME
picl_get_prop_by_name - get the handle of the property by name SYNOPSIS
cc [ flag... ] file... -lpicl [ library... ] #include <picl.h> int picl_get_prop_by_name(picl_nodehdl_t nodeh, char *name, picl_prophdl_t *proph); DESCRIPTION
The picl_get_prop_by_name() function gets the handle of the property of node nodeh whose name is specified in name. The handle is copied into the location specified by proph. RETURN VALUES
Upon successful completion, 0 is returned. On failure, a non-negative integer is returned to indicate an error. PICL_PROPNOTFOUND is returned if the property of the specified name does not exist. PICL_RESERVEDNAME is returned if the property name specified is one of the reserved property names. 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. This error may be returned for a previously valid handle if the dae- mon was brought down and restarted. When this occurs a client must revalidate any saved handles. ERRORS
PICL_NOTINITIALIZED Session not initialized PICL_NORESPONSE Daemon not responding PICL_NOTNODE Not a node PICL_PROPNOTFOUND Property not found PICL_RESERVEDNAME Reserved property name specified 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 | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.10 28 Mar 2000 picl_get_prop_by_name(3PICL)
Man Page