2 .\" Copyright (c) 2000, 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_CREATE_PROP 3PICLTREE "Mar 28, 2000"
8 ptree_create_prop, ptree_destroy_prop \- create or destroy a property
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lpicltree\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBptree_create_prop\fR(\fBptree_propinfo_t *\fR\fIpinfo\fR, \fBvoid *\fR\fIvalbuf\fR,
16 \fBpicl_prophdl_t *\fR\fIproph\fR);
21 \fBint\fR \fBptree_destroy_prop\fR(\fBpicl_prophdl_t\fR \fIproph\fR);
27 The \fBptree_create_prop()\fR function creates a property using the information
28 specified in \fIpinfo\fR, which includes the name, type, access mode, and size
29 of the property, as well as the read access function for a volatile property.
30 The value of the property is specified in the buffer \fIvalbuf\fR, which may be
31 \fINULL\fR for volatile properties. The handle of the property created is
32 copied into the location given by \fIproph\fR. See
33 \fBlibpicltree\fR(3PICLTREE) for more information on the structure of
34 \fBptree_propinfo_t\fR structure.
37 The \fBptree_destroy_prop()\fR function destroys the property specified by the
38 handle \fIproph\fR. For a table property, the entire table is destroyed. The
39 property to be destroyed must have been previously deleted.
43 Upon successful completion, \fB0\fR is returned. On failure, a non-negative
44 integer is returned to indicate an error.
47 \fBPICL_STALEHANDLE\fR is returned if the handle is no longer valid. This
48 occurs if the PICL tree was refreshed or reinitialized.
51 \fBPICL_INVALIDHANDLE\fR is returned if the specified handle never existed.
56 \fB\fBPICL_NOTSUPPORTED\fR\fR
59 Property version not supported
65 \fB\fBPICL_VALUETOOBIG\fR\fR
68 Value exceeds maximum size
74 \fB\fBPICL_NOTPROP\fR\fR
83 \fB\fBPICL_CANTDESTROY\fR\fR
86 Attempting to destroy before delete
92 \fB\fBPICL_RESERVEDNAME\fR\fR
95 Property name is reserved
101 \fB\fBPICL_INVREFERENCE\fR\fR
104 Invalid reference property value
110 \fB\fBPICL_INVALIDHANDLE\fR\fR
119 \fB\fBPICL_STALEHANDLE\fR\fR
128 \fB\fBPICL_FAILURE\fR\fR
131 General system failure
137 See \fBattributes\fR(5) for descriptions of the following attributes:
145 ATTRIBUTE TYPE ATTRIBUTE VALUE
147 Interface Stability Evolving
155 \fBlibpicltree\fR(3PICLTREE), \fBptree_add_prop\fR(3PICLTREE),