1stmfSetProviderDatSaCPSrIotT(a3rSgTeMtF)Mode Framework LibrasrtymfFSuentcPtrioovnisderDataProt(3STMF)
2
3
4

NAME

6       stmfSetProviderDataProt - retrieve data for the specified provider
7

SYNOPSIS

9       cc [ flag... ] file... -lstmf [ library... ]
10        #include <libstmf.h>
11
12       int stmfSetProviderDataProt(char *providerName, nvlist_t **nvl,
13            int providerType, uint64_t *token);
14
15

PARAMETERS

17       providerName    The name of the provider for which data is being set.
18
19
20       nvl             A  pointer  to  a pointer to an nvlist_t containing the
21                       nvlist to be set.
22
23
24       providerType    The  value  for   this   parameter   must   be   either
25                       STMF_LU_PROVIDER_TYPE or STMF_PORT_PROVIDER_TYPE.
26
27
28       token           A  pointer  to  a  uint64_t  that  contains  the  value
29                       returned from a successful call to  stmfGetProviderDat‐
30                       aProt(3STMF).  If  this  argument is NULL, the token is
31                       ignored. Otherwise, the token will be verified  against
32                       the  current  data. If the token represents stale data,
33                       the call fails.
34
35                       On success, token will contain the new  token  for  the
36                       data  being  set and can be used in subsequent calls to
37                       stmfSetProviderData(3STMF). On failure the contents are
38                       undefined.
39
40

DESCRIPTION

42       The  stmfSetProviderDataProt() function sets the data for the specified
43       provider.
44

RETURN VALUES

46       The following values are returned:
47
48       STMF_ERROR_PROV_DATA_STALE    The token value represents stale data.
49
50
51       STMF_STATUS_SUCCESS           The API call was successful.
52
53

ATTRIBUTES

55       See attributes(5) for descriptions of the following attributes:
56
57
58
59
60       ┌─────────────────────────────┬─────────────────────────────┐
61       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │Interface Stability          │Committed                    │
64       ├─────────────────────────────┼─────────────────────────────┤
65       │MT-Level                     │Safe                         │
66       └─────────────────────────────┴─────────────────────────────┘
67

SEE ALSO

69       libstmf(3LIB),  nvlist_free(3NVPAIR),   stmfGetProviderDataProt(3STMF),
70       stmfSetProviderData(3STMF), attributes(5)
71
72
73
74SunOS 5.11                        7 Oct 2008    stmfSetProviderDataProt(3STMF)
Impressum