1stmfAddViewEntry(3SSCTSMIF)Target Mode Framework Library FuncsttimofnAsddViewEntry(3STMF)
2
3
4
6 stmfAddViewEntry - add a view entry for a given logical unit
7
9 cc [ flag... ] file... -lstmf [ library... ]
10 #include <libstmf.h>
11
12 int stmfAddViewEntry(stmfGuid *logicalUnit,
13 stmfViewEntry *viewEntry);
14
15
17 logicalUnit The identifier of the logical unit to which this view
18 entry is being added.
19
20
21 viewEntry The view entry to add to the specified logical unit
22 identifier.
23
24
26 The stmfAddViewEntry() function adds a view entry for a given logical
27 unit.
28
30 The following values are returned:
31
32 STMF_ERROR_LUN_IN_USE The specified logical unit number is already
33 in use for this logical unit.
34
35
36 STMF_ERROR_NOT_FOUND The ID specified for logicalUnit was not
37 found in the system.
38
39
40 STMF_ERROR_VE_CONFLICT Adding this view entry is in conflict with
41 one or more existing view entries.
42
43
44 STMF_STATUS_SUCCESS The API call was successful.
45
46
48 See attributes(5) for descriptions of the following attributes:
49
50
51
52
53 ┌─────────────────────────────┬─────────────────────────────┐
54 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │Interface Stability │Committed │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │MT-Level │Safe │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 libstmf(3LIB), attributes(5)
63
65 If luNbrValid in the stmfViewEntry structure is set to B_FALSE, the
66 framework will assign a logical unit number for this view entry. veIn‐
67 dexValid must be set to B_FALSE when adding a view entry. On successful
68 return, veIndexValid will be set to B_TRUE and veIndex will contain the
69 view entry index assigned to this view entry by the framework.
70
71
72
73SunOS 5.11 9 Jun 2008 stmfAddViewEntry(3STMF)