2 .\" Copyright (c) 2008, 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 STMFGETPROVIDERDATAPROT 3STMF "Oct 7, 2008"
8 stmfGetProviderDataProt \- retrieve data for the specified provider
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lstmf\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBstmfGetProviderDataProt\fR(\fBchar *\fR\fIproviderName\fR, \fBnvlist_t **\fR\fInvl\fR,
16 \fBint\fR \fIproviderType\fR, \fBuint64_t *\fR\fItoken\fR);
23 \fB\fIproviderName\fR\fR
26 The name of the provider for which data is being retrieved.
35 A pointer to a pointer to an \fBnvlist_t\fR. On success, this will contain the
36 nvlist retrieved. The caller is responsible for freeing the returned nvlist by
37 calling \fBnvlist_free\fR(3NVPAIR).
43 \fB\fIproviderType\fR\fR
46 The value for this parameter must be either \fBSTMF_LU_PROVIDER_TYPE\fR or
47 \fBSTMF_PORT_PROVIDER_TYPE\fR.
56 A pointer to a \fBuint64_t\fR allocated by the caller. On success, this will
57 contain a token for the returned data that can be used in a call to
58 \fBstmfSetProviderDataProt\fR(3STMF) to ensure that the data returned in this
59 call is not stale. If this value is \fINULL\fR, the token will be ignored.
65 The \fBstmfGetProviderDataProt()\fR function retrieves the data for the
70 The following values are returned:
74 \fB\fBSTMF_ERROR_NOMEM\fR\fR
77 The library was unable to allocate sufficient memory to return the data.
83 \fB\fBSTMF_STATUS_SUCCESS\fR\fR
86 The API call was successful.
92 See \fBattributes\fR(5) for descriptions of the following attributes:
100 ATTRIBUTE TYPE ATTRIBUTE VALUE
102 Interface Stability Committed
110 \fBlibstmf\fR(3LIB), \fBnvlist_free\fR(3NVPAIR),
111 \fBstmfSetProviderDataProt\fR(3STMF), \fBattributes\fR(5)