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_INIT_PROPINFO 3PICLTREE "Aug 1, 2000"
8 ptree_init_propinfo \- initialize ptree_propinfo_t structure
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lpicltree\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBptree_init_propinfo\fR(\fBptree_propinfo_t *\fR\fIinfop\fR, \fBint\fR \fIversion\fR,
16 \fBint\fR \fIptype\fR, \fBint\fR \fIpmode\fR, \fBsize_t\fR \fIpsize\fR, \fBchar *\fR\fIpname\fR,
17 \fBint (*\fR\fIreadfn\fR)(ptree_rarg_t *, \fBvoid *)\fR,
18 \fBint (*\fR\fIwritefn\fR)(ptree_warg_t *, \fBconst void *)\fR);
24 The \fBptree_init_propinfo()\fR function initializes a \fBptree_propinfo_t\fR
25 property information structure given by location \fIinfop\fR with the values
26 provided by the arguments.
29 The \fIversion\fR argument specifies the version of the \fBptree_propinfo_t\fR
30 structure. \fBPTREE_PROPINFO_VERSION\fR gives the current version. The
31 arguments \fIptype\fR, \fIpmode\fR, \fIpsize\fR, and \fIpname\fR specify the
32 property's PICL type, access mode, size, and name. The maximum size of a
33 property name is defined by \fBPICL_PROPNAMELEN_MAX\fR. The arguments
34 \fIreadfn\fR and \fIwritefn\fR specify a volatile property's read and write
35 access functions. For non-volatile properties, these are set to \fINULL\fR.
39 Upon successful completion, \fB0\fR is returned. On failure, a non-negative
40 integer is returned to indicate an error.
45 \fB\fBPICL_INVALIDARG\fR\fR
54 \fB\fBPICL_NOTSUPPORTED\fR\fR
57 Property version not supported
63 \fB\fBPICL_FAILURE\fR\fR
66 General system failure
72 See \fBattributes\fR(5) for descriptions of the following attributes:
80 ATTRIBUTE TYPE ATTRIBUTE VALUE
82 Interface Stability Evolving
90 \fBptree_get_propinfo\fR(3PICLTREE), \fBattributes\fR(5)