2 .\" Copyright (c) 2004-2006 Storage Networking Industry Association. All Rights Reserved.
3 .\" Portions Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH MP_SETPATHWEIGHT 3MPAPI "Feb 15, 2006"
9 MP_SetPathWeight \- set the weight of a path
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lMPAPI\fR [ \fIlibrary\fR\&.\|.\|. ]
16 \fBMP_STATUS\fR \fBMP_SetPathWeight\fR(\fBMP_OID\fR \fIpathOid\fR, \fBMP_UINT32\fR \fIweight\fR);
26 The object ID of the path logical unit.
35 A weight that will be assigned to the path logical unit.
41 The \fBMP_SetPathWeight()\fR function sets the weight to be assigned to a
47 \fB\fBMP_STATUS_INVALID_OBJECT_TYPE\fR\fR
51 The \fIpathOid\fR does not specify any valid object type. This is most likely
52 to happen if an uninitialized object ID is passed to the API.
58 \fB\fBMP_STATUS_OBJECT_NOT_FOUND\fR\fR
62 The \fIpathOid\fR ownerID or object sequence number is invalid.
68 \fB\fBMP_STATUS_INVALID_PARAMETER\fR\fR
72 The \fIpathOid\fR has a type subfield other than \fBMP_OBJECT_TYPE_PATH_LU\fR,
73 or when the weight parameter is greater than the plugin's maximum weight
80 \fB\fBMP_STATUS_SUCCESS\fR\fR
84 The operation is successful.
90 \fB\fBMP_STATUS_FAILED\fR\fR
100 \fB\fBMP_STATUS_UNSUPPORTED\fR\fR
104 The driver does not support setting path weight.
110 See \fBattributes\fR(5) for descriptions of the following attributes:
118 ATTRIBUTE TYPE ATTRIBUTE VALUE
120 Interface Stability T{
121 Standard: ANSI INCITS 412 Multipath Management API
130 \fBlibMPAPI\fR(3LIB), \fBattributes\fR(5)
133 \fIMultipath Management API Version 1.0\fR