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 STMFADDVIEWENTRY 3STMF "Jun 9, 2008"
8 stmfAddViewEntry \- add a view entry for a given logical unit
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lstmf\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBstmfAddViewEntry\fR(\fBstmfGuid *\fR\fIlogicalUnit\fR,
16 \fBstmfViewEntry *\fR\fIviewEntry\fR);
23 \fB\fIlogicalUnit\fR\fR
26 The identifier of the logical unit to which this view entry is being added.
35 The view entry to add to the specified logical unit identifier.
41 The \fBstmfAddViewEntry()\fR function adds a view entry for a given logical
46 The following values are returned:
50 \fB\fBSTMF_ERROR_LUN_IN_USE\fR\fR
53 The specified logical unit number is already in use for this logical unit.
59 \fB\fBSTMF_ERROR_NOT_FOUND\fR\fR
62 The ID specified for \fIlogicalUnit\fR was not found in the system.
68 \fB\fBSTMF_ERROR_VE_CONFLICT\fR\fR
71 Adding this view entry is in conflict with one or more existing view entries.
77 \fB\fBSTMF_STATUS_SUCCESS\fR\fR
80 The API call was successful.
86 See \fBattributes\fR(5) for descriptions of the following attributes:
94 ATTRIBUTE TYPE ATTRIBUTE VALUE
96 Interface Stability Committed
104 \fBlibstmf\fR(3LIB), \fBattributes\fR(5)
108 If \fIluNbrValid\fR in the \fBstmfViewEntry\fR structure is set to
109 \fBB_FALSE\fR, the framework will assign a logical unit number for this view
110 entry. \fIveIndexValid\fR must be set to \fBB_FALSE\fR when adding a view
111 entry. On successful return, \fIveIndexValid\fR will be set to \fBB_TRUE\fR and
112 \fIveIndex\fR will contain the view entry index assigned to this view entry by