LIBMPAPI(3LIB) | Interface Libraries | LIBMPAPI(3LIB) |
libMPAPI, libmpapi - Common Multipath Management library
cc [ flag... ] file... -lMPAPI [ library... ] #include <mpapi.h> #include <mpapi-sun.h>
The functions in this library allow a management application to administer the multipath devices and associated resources through standard interfaces, independent of a vendor-unique multipathing solution.
The shared object libMPAPI.so.1 provides the public
interfaces defined below. See Intro(3) for additional information on
shared object interfaces.
MP_AssignLogicalUnitToTPG
MP_CancelOverridePath
MP_CompareOIDs
MP_DeregisterForObjectPropertyChanges
MP_DeregisterForObjectVisibilityChanges
MP_DeregisterPlugin
MP_DisableAutoFailback
MP_DisableAutoProbing
MP_DisablePath
MP_EnableAutoFailback
MP_EnableAutoProbing
MP_EnablePath
MP_FreeOidList
MP_GetAssociatedPathOidList
MP_GetAssociatedPluginOid
MP_GetAssociatedTPGOidList
MP_GetDeviceProductOidList
MP_GetDeviceProductProperties
MP_GetInitiatorPortOidList
MP_GetInitiatorPortProperties
MP_GetLibraryProperties
MP_GetMPLogicalUnitProperties
MP_GetMPLuOidListFromTPG
MP_GetMultipathLus
MP_GetObjectType
MP_GetPathLogicalUnitProperties
MP_GetPluginOidList
MP_GetPluginProperties
MP_GetProprietaryLoadBalanceOidList
MP_GetProprietaryLoadBalanceProperties
MP_GetTargetPortGroupProperties
MP_GetTargetPortOidList
MP_GetTargetPortProperties
MP_RegisterForObjectPropertyChanges
MP_RegisterForObjectVisibilityChanges
MP_RegisterPlugin
MP_SetFailbackPollingRate
MP_SetLogicalUnitLoadBalanceType
MP_SetOverridePath
MP_SetPathWeight
MP_SetPluginLoadBalanceType
MP_SetProbingPollingRate
MP_SetProprietaryProperties
MP_SetTPGAccess
Sun_MP_SendScsiCmd
Client applications link with the Common Library (using -lMPAPI) to access the interfaces. The Common Library dynamically loads an individual vendor-provided plugin library that is available through MP_RegisterPlugin(3MPAPI) on the host system.
Using libMPAPI involves the following steps:
Errors are generally returned from the underlying VSL and can include any of the following values:
MP_STATUS_SUCCESS
MP_STATUS_INVALID_PARAMETER
MP_STATUS_UNKNOWN_FN
MP_STATUS_FAILED
MP_STATUS_INSUFFICIENT_MEMORY
MP_STATUS_INVALID_OBJECT_TYPE
MP_STATUS_OBJECT_NOT_FOUND
MP_STATUS_UNSUPPORTED
MP_STATUS_FN_REPLACED
MP_STATUS_ACCESS_STATE_INVALID
MP_STATUS_PATH_NONOPERATIONAL
MP_STATUS_TRY_AGAIN
MP_STATUS_NOT_PERMITTED
/usr/lib/libMPAPI.so
/usr/lib/64/libMPAPI.so
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
MT-Level | Safe |
Standard | ANSI INCITS 412 Multipath Management API (except for Sun_MP_SendScsiCmd) |
Intro(3), MP_RegisterPlugin(3MPAPI), attributes(7)
Multipath Management API Version 1.0
June 13, 2021 | OmniOS |