INTERFACES

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

Usage

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(4).

Using the libSMHBAAPI involves the following steps:

Optionally determining the version of the library by calling SMHBA_GetVersion().

Initializing the Common Library by calling HBA_LoadLibrary().

Determine the number of HBAs known to the common library by calling HBA_GetNumberOfAdapters().