1ptree_get_frutree_parent(P3IPCILCLPTlRuEgE-)In LibraryptFruenec_tgieotn_sfrutree_parent(3PICLTREE)
2
3
4
6 ptree_get_frutree_parent - get frutree parent node for a given device
7 node
8
10 cc [ flag... ] file... -lpicltree [ library... ]
11 #include <picltree.h>
12
13 int ptree_get_frutree_parent(picl_nodehdl_t devh,
14 picl_nodehdl_t *frutreeh);
15
16
18 The devices under the /platform subtree of the PICLTREE are linked to
19 their FRU containers represented in the /frutree using PICL reference
20 properties. The ptree_get_frutree_parent() function returns the handle
21 of the node in the /frutree subtree that is the FRU parent or container
22 of the the device specified by the node handle, devh. The handle is
23 returned in the frutreeh argument.
24
26 Upon successful completion, 0 is returned. Otherwise a non-negative
27 integer is returned to indicate an error.
28
30 PICL_FAILURE General system failure
31
32
33 PICL_INVALIDHANDLE Invalid handle
34
35
36 PICL_PROPNOTFOUND Property not found
37
38
39 PICL_STALEHANDLE Stale handle
40
41
43 See attributes(5) for descriptions of the following attributes:
44
45
46
47
48 ┌─────────────────────────────┬─────────────────────────────┐
49 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
50 ├─────────────────────────────┼─────────────────────────────┤
51 │Interface Stability │Evolving │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │MT-Level │MT-Safe │
54 └─────────────────────────────┴─────────────────────────────┘
55
57 ptree_get_propinfo(3PICLTREE), ptree_get_propval(3PICLTREE),
58 ptree_get_propval_by_name(3PICLTREE),
59 ptree_get_prop_by_name(3PICLTREE), attributes(5)
60
61
62
63SunOS 5.11 5 Feb 2004ptree_get_frutree_parent(3PICLTREE)