1Sun_MP_SendScsiCmdC(o3mMmPoAnPIM)ultipath Management LibrarySFuunn_cMtPi_oSnesndScsiCmd(3MPAPI)
2
3
4
6 Sun_MP_SendScsiCmd - send a SCSI command to a logical unit
7
9 cc [ flag... ] file... -lMPAPI [ library... ]
10 #include <mpapi.h>
11 #include <mpapi_sun.h>
12
13 MP_STATUS MP_SendScsiCmd(MP_OID oid, struct uscsi_cmd *cmd);
14
15
17 oid The object ID of the logical unit path.
18
19
20 cmd A uscsi_cmd structure. See uscsi(7I).
21
22
24 The Sun_MP_SendScsiCmd() function sends a SCSI command on a specific
25 path to a logical unit. This function is applicable only to an OID
26 whose MP_PLUGIN_PROPERTIES driverVendor, as defined by the Multipath
27 Management API, is equal to "Sun Microsystems". See MP_GetPluginProper‐
28 ties(3MPAPI) and Multipath Management API Version 1.0.
29
31 MP_STATUS_INVALID_PARAMETER
32
33 The pProps is null or specifies a memory area to which data can‐
34 not be written, or the oid has a type subfield other than
35 MP_OBJECT_TYPE_PLUGIN.
36
37
38 MP_STATUS_INVALID_OBJECT_TYPE
39
40 The oid does not specify any valid object type. This is most
41 likely to happen if an uninitialized object ID is passed to the
42 API.
43
44
45 MP_STATUS_OBJECT_NOT_FOUND
46
47 The oid owner ID or object sequence number is invalid.
48
49
50 MP_STATUS_SUCCESS
51
52 The operation is successful.
53
54
56 The uscsi command is very powerful but somewhat dangerous. See the
57 WARNINGS section on attributes(5) before using this interface.
58
60 See attributes(5) for descriptions of the following attributes:
61
62
63
64
65 ┌─────────────────────────────┬─────────────────────────────┐
66 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
67 ├─────────────────────────────┼─────────────────────────────┤
68 │Interface Stability │Committed │
69 ├─────────────────────────────┼─────────────────────────────┤
70 │MT-Level │Safe │
71 └─────────────────────────────┴─────────────────────────────┘
72
74 libMPAPI(3LIB), MP_GetPluginProperties(3MPAPI), attributes(5),
75 uscsi(7I)
76
77
78 Multipath Management API Version 1.0
79
80
81
82SunOS 5.11 12 Dec 2006 Sun_MP_SendScsiCmd(3MPAPI)