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 STMFSETPROVIDERDATAPROT 3STMF "Oct 7, 2008"
8 stmfSetProviderDataProt \- retrieve data for the specified provider
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lstmf\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBstmfSetProviderDataProt\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 set.
35 A pointer to a pointer to an \fBnvlist_t\fR containing the nvlist to be set.
41 \fB\fIproviderType\fR\fR
44 The value for this parameter must be either \fBSTMF_LU_PROVIDER_TYPE\fR or
45 \fBSTMF_PORT_PROVIDER_TYPE\fR.
54 A pointer to a \fBuint64_t\fR that contains the value returned from a
55 successful call to \fBstmfGetProviderDataProt\fR(3STMF). If this argument is
56 \fINULL\fR, the token is ignored. Otherwise, the token will be verified against
57 the current data. If the token represents stale data, the call fails.
59 On success, \fItoken\fR will contain the new token for the data being set and
60 can be used in subsequent calls to \fBstmfSetProviderData\fR(3STMF). On failure
61 the contents are undefined.
67 The \fBstmfSetProviderDataProt()\fR function sets the data for the specified
72 The following values are returned:
76 \fB\fBSTMF_ERROR_PROV_DATA_STALE\fR\fR
79 The token value represents stale data.
85 \fB\fBSTMF_STATUS_SUCCESS\fR\fR
88 The API call was successful.
94 See \fBattributes\fR(5) for descriptions of the following attributes:
102 ATTRIBUTE TYPE ATTRIBUTE VALUE
104 Interface Stability Committed
112 \fBlibstmf\fR(3LIB), \fBnvlist_free\fR(3NVPAIR),
113 \fBstmfGetProviderDataProt\fR(3STMF), \fBstmfSetProviderData\fR(3STMF),