2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH PTREE_GET_FRUTREE_PARENT 3PICLTREE "April 9, 2016"
8 ptree_get_frutree_parent \- get frutree parent node for a given device node
12 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpicltree\fR [ \fIlibrary\fR\&.\|.\|. ]
15 \fBint\fR \fBptree_get_frutree_parent\fR(\fBpicl_nodehdl_t\fR \fIdevh\fR,
16 \fBpicl_nodehdl_t *\fR\fIfrutreeh\fR);
21 The devices under the \fB/platform\fR subtree of the PICLTREE are linked to
22 their FRU containers represented in the \fB/frutree\fR using PICL reference
23 properties. The \fBptree_get_frutree_parent()\fR function returns the handle of
24 the node in the \fB/frutree\fR subtree that is the FRU parent or container of
25 the device specified by the node handle, \fIdevh\fR. The handle is returned
26 in the \fIfrutreeh\fR argument.
29 Upon successful completion, 0 is returned. Otherwise a non-negative integer is
30 returned to indicate an error.
34 \fB\fBPICL_FAILURE\fR\fR
37 General system failure
43 \fB\fBPICL_INVALIDHANDLE\fR\fR
52 \fB\fBPICL_PROPNOTFOUND\fR\fR
61 \fB\fBPICL_STALEHANDLE\fR\fR
69 See \fBattributes\fR(5) for descriptions of the following attributes:
77 ATTRIBUTE TYPE ATTRIBUTE VALUE
79 Interface Stability Evolving
86 \fBptree_get_propinfo\fR(3PICLTREE), \fBptree_get_propval\fR(3PICLTREE),
87 \fBptree_get_propval_by_name\fR(3PICLTREE),
88 \fBptree_get_prop_by_name\fR(3PICLTREE), \fBattributes\fR(5)