1stmfDevidFromWwn(3SSCTSMIF)Target Mode Framework Library FuncsttimofnDsevidFromWwn(3STMF)
2
3
4
6 stmfDevidFromWwn - convert a WWN to a stmfDevid structure
7
9 cc [ flag... ] file... -lstmf [ library... ]
10 #include <libstmf.h>
11
12 int stmfDevidFromWWN(uchar_t wwn[8], stmfDevid *devid);
13
14
16 wwn The 8-byte WWN identifier.
17
18
19 devid A pointer to a stmfDevid structure allocated by the caller. On
20 successful return, this will contain the converted device
21 identifier. On error, the value of this parameter is unde‐
22 fined.
23
24
26 The stmfDevidFromWwn function convert a WWN to a stmfDevid structure.
27 It returns the devid as a SCSI name string.
28
30 The following values are returned:
31
32 STMF_ERROR_INVALID_ARGUMENT
33
34 The value of wwn was not valid WWN identifier.
35
36
37 STMF_STATUS_SUCCESS
38
39 The API call was successful.
40
41
43 See attributes(5) for descriptions of the following attributes:
44
45
46
47
48 ┌─────────────────────────────┬─────────────────────────────┐
49 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
50 ├─────────────────────────────┼─────────────────────────────┤
51 │Interface Stability │Committed │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │MT-Level │Safe │
54 └─────────────────────────────┴─────────────────────────────┘
55
57 libstmf(3LIB), attributes(5)
58
59
60
61SunOS 5.11 9 Jun 2008 stmfDevidFromWwn(3STMF)