1 '\" te
   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 PICL_GET_PROPINFO 3PICL "Mar 28, 2000"
   7 .SH NAME
   8 picl_get_propinfo \- get the information about a property
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lpicl\fR [ \fIlibrary\fR... ]
  13 #include <picl.h>
  14 
  15 \fBint\fR \fBpicl_get_propinfo\fR(\fBpicl_prophdl_t\fR \fIproph\fR,
  16      \fBpicl_propinfo_t *\fR\fIpinfo\fR);
  17 .fi
  18 
  19 .SH DESCRIPTION
  20 .sp
  21 .LP
  22 The \fBpicl_get_propinfo()\fR function gets the information about the property
  23 specified by handle \fIproph\fR and copies it into the location specified by
  24 \fIpinfo\fR.  The property information includes the property type, access mode,
  25 size, and the name of the property as described on \fBlibpicl\fR(3PICL) manual
  26 page.
  27 .sp
  28 .LP
  29 The maximum size of a property value is specified by \fBPICL_PROPSIZE_MAX\fR.
  30 It is currently set to 512KB.
  31 .SH RETURN VALUES
  32 .sp
  33 .LP
  34 Upon successful completion, \fB0\fR is returned. On failure, a non-negative
  35 integer is returned to indicate an error.
  36 .sp
  37 .LP
  38 \fBPICL_STALEHANDLE\fR is returned if the handle is no longer valid. This
  39 occurs if the PICL tree was refreshed or reinitialized.
  40 .sp
  41 .LP
  42 \fBPICL_INVALIDHANDLE\fR is returned if the specified handle never existed.
  43 This error may be returned for a previously valid handle if the daemon was
  44 brought down and restarted. When this occurs a client must revalidate any saved
  45 handles.
  46 .SH ERRORS
  47 .sp
  48 .ne 2
  49 .na
  50 \fB\fBPICL_NOTINITIALIZED\fR\fR
  51 .ad
  52 .RS 23n
  53 Session not initialized
  54 .RE
  55 
  56 .sp
  57 .ne 2
  58 .na
  59 \fB\fBPICL_NORESPONSE\fR\fR
  60 .ad
  61 .RS 23n
  62 Daemon not responding
  63 .RE
  64 
  65 .sp
  66 .ne 2
  67 .na
  68 \fB\fBPICL_NOTPROP\fR\fR
  69 .ad
  70 .RS 23n
  71 Not a property
  72 .RE
  73 
  74 .sp
  75 .ne 2
  76 .na
  77 \fB\fBPICL_INVALIDHANDLE\fR\fR
  78 .ad
  79 .RS 23n
  80 Invalid handle specified
  81 .RE
  82 
  83 .sp
  84 .ne 2
  85 .na
  86 \fB\fBPICL_STALEHANDLE\fR\fR
  87 .ad
  88 .RS 23n
  89 Stale handle specifie
  90 .RE
  91 
  92 .sp
  93 .ne 2
  94 .na
  95 \fB\fBPICL_FAILURE\fR\fR
  96 .ad
  97 .RS 23n
  98 General system failure
  99 .RE
 100 
 101 .SH ATTRIBUTES
 102 .sp
 103 .LP
 104 See \fBattributes\fR(5) for descriptions of the following attributes:
 105 .sp
 106 
 107 .sp
 108 .TS
 109 box;
 110 c | c
 111 l | l .
 112 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 113 _
 114 MT-Level        MT-Safe
 115 .TE
 116 
 117 .SH SEE ALSO
 118 .sp
 119 .LP
 120 \fBlibpicl\fR(3PICL), \fBpicl_get_propval\fR(3PICL),
 121 \fBpicl_get_propval_by_name\fR(3PICL), \fBattributes\fR(5)