LIBSMHBAAPI(3LIB) | Interface Libraries | LIBSMHBAAPI(3LIB) |
libSMHBAAPI, libsmhbaapi, SMHBA_GetAdapterAttributes, SMHBA_GetAdapterPortAttributes, SMHBA_GetBindingCapability, SMHBA_GetBindingSupport, SMHBA_GetDiscoveredPortAttributes, SMHBA_GetFCPhyAttributes, SMHBA_GetLUNStatistics, SMHBA_GetNumberofPorts, SMHBA_GetPersistentBinding, SMHBA_GetPhyStatistics, SMHBA_GetPortAttributesByWWN, SMHBA_GetPortType, SMHBA_GetProtocolStatistics, SMHBA_GetSASPhyAttributes, SMHBA_GetTargetMapping, SMHBA_GetVendorLibraryAttributes, SMHBA_GetVersion, SMHBA_GetWrapperLibraryAttributes, SMHBA_RegisterForAdapterAddEvents, SMHBA_RegisterForAdapterEvents, SMHBA_RegisterForAdapterPhyStatEvents, SMHBA_RegisterForAdapterPortEvents, SMHBA_RegisterForAdapterPortStatEvents, SMHBA_RegisterForTargetEvents, SMHBA_RegisterLibrary, SMHBA_RemoveAllPersistentBindings, SMHBA_RemovePersistentBinding, SMHBA_ScsiInquiry, SMHBA_ScsiReadCapacity, SMHBA_ScsiReportLuns, SMHBA_SendECHO, SMHBA_SendSMPPassThru, SMHBA_SendTEST, SMHBA_SetBindingSupport, SMHBA_SetPersistentBinding - Common Storage Management HBA information library
cc [ flag... ] file... -lSMHBAAPI [ library... ] #include <smhbaapi.h>
The functions in this library access Fibre Channel and/or Serial Attached SCSI HBA data depending on vendor provided implementation underneath.
HBA information is provided through a standard interface in a vendor independent manner. This common interface provides access to the following information:
The shared object libSMHBAAPI.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.
HBA_CloseAdapter | HBA_FreeLibrary |
HBA_GetAdapterName | HBA_GetNumberOfAdapters |
HBA_GetRNIDMgmtInfo | HBA_LoadLibrary |
HBA_OpenAdapter | HBA_RefreshAdapterConfiguration |
HBA_RefreshInformation | HBA_RegisterForLinkEvents |
HBA_RemoveCallback | HBA_SendCTPassThruV2 |
HBA_SendLIRR | HBA_SendRLS |
HBA_SendRNIDV2 | HBA_SendRPL |
HBA_SendRPS | HBA_SendSRL |
HBA_SetRNIDMgmtInfo | SMHBA_GetAdapterAttributes |
SMHBA_GetAdapterPortAttributes | SMHBA_GetBindingCapability |
SMHBA_GetBindingSupport | SMHBA_GetDiscoveredPortAttributes |
SMHBA_GetFCPhyAttributes | SMHBA_GetLUNStatistics |
SMHBA_GetNumberofPorts | SMHBA_GetPersistentBinding |
SMHBA_GetPhyStatistics | SMHBA_GetPortAttributesByWWN |
SMHBA_GetPortType | SMHBA_GetProtocolStatistics |
SMHBA_GetSASPhyAttributes | SMHBA_GetTargetMapping |
SMHBA_GetVendorLibraryAttributes | SMHBA_GetVersion |
SMHBA_GetWrapperLibraryAttributes | SMHBA_RegisterForAdapterAddEvents |
SMHBA_RegisterForAdapterEvents | SMHBA_RegisterForAdapterPhyStatEvents |
SMHBA_RegisterForAdapterPortEvents | SMHBA_RegisterForAdapterPortStatEvents |
SMHBA_RegisterForTargetEvents | SMHBA_RegisterLibrary |
SMHBA_RemoveAllPersistentBindings | SMHBA_RemovePersistentBinding |
SMHBA_ScsiInquiry | SMHBA_ScsiReadCapacity |
SMHBA_ScsiReportLuns | SMHBA_SendECHO |
SMHBA_SendSMPPassThru | SMHBA_SendTEST |
SMHBA_SetBindingSupport | SMHBA_SetPersistentBinding |
Client applications link with the Common Library (using -lSMHBAAPI) to access the interfaces. The Common Library dynamically loads individual Vendor-Specific Libraries (VSL) listed in /etc/smhba.conf and described on smhba.conf(5).
Using the libSMHBAAPI involves the following steps:
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
MT-Level | MT-Safe |
Standard | ANSI INCITS 428 Storage Management Host Bus Adapter Application Programming Interface (SM-HBA) |
August 19, 2019 | OmniOS |