| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Library Interfaces and Headers Oracle Solaris 11 Information Library |
Library Interfaces and Headers
SMHBA_GetAdapterAttributes(3LIB)
SMHBA_GetAdapterPortAttributes(3LIB)
SMHBA_GetBindingCapability(3LIB)
SMHBA_GetDiscoveredPortAttributes(3LIB)
SMHBA_GetFCPhyAttributes(3LIB)
SMHBA_GetPersistentBinding(3LIB)
SMHBA_GetPortAttributesByWWN(3LIB)
SMHBA_GetProtocolStatistics(3LIB)
SMHBA_GetSASPhyAttributes(3LIB)
SMHBA_GetVendorLibraryAttributes(3LIB)
SMHBA_GetWrapperLibraryAttributes(3LIB)
SMHBA_RegisterForAdapterAddEvents(3LIB)
SMHBA_RegisterForAdapterEvents(3LIB)
SMHBA_RegisterForAdapterPhyStatEvents(3LIB)
SMHBA_RegisterForAdapterPortEvents(3LIB)
SMHBA_RegisterForAdapterPortStatEvents(3LIB)
SMHBA_RegisterForTargetEvents(3LIB)
SMHBA_RemoveAllPersistentBindings(3LIB)
SMHBA_RemovePersistentBinding(3LIB)
- Common Storage Management HBA information library
cc [flag… ]file…-lSMHBAAPI [library… ]#include <smhbaapi.h>
The functions in this library access Fibre Channel and/or Sereal Attached SCSIHBA data depending on vendor provided implementation underneath.
HBA information is provided through a standard interface in a vendor independentmanner. This common interface provides access to the following information:
Local HBA attributes
Local HBA port attributes and statistics
Mapping between discovered devices and operating system SCSI information
Discovered devices port attributes
SCSI commands for discovered devices (Report LUNS, Read Capacity, and Inquiry)
Storage Managment Protocol commands to discover Serial Attached SCSI configuration details
Common Transport commands to discover Fibre Channel Fabric details
The shared objectlibSMHBAAPI.so.1 provides the public interfaces defined below. SeeIntro(3)for additional information on shared object interfaces.
|
Client applications link with the Common Library (using –lSMHBAAPI) to access theinterfaces. The Common Library dynamically loads individual Vendor-Specific Libraries (VSL) listed in/etc/smhba.conf and described onsmhba.conf(4).
Using thelibSMHBAAPI involves the following steps:
Optionally determining the version of the library by callingSMHBA_GetVersion().
Initializing the Common Library by callingHBA_LoadLibrary().
Determine the number of HBAs known to the common library by callingHBA_GetNumberOfAdapters().
Determine each HBA name in turn by callingHBA_GetAdapterName().
Open each HBA in turn by callingHBA_OpenAdapter().
Operate on a given HBA by calling the following:
SMHBA_GetAdapterAttributes()
SMHBA_GetAdapterPortAttributes()
SMHBA_GetDiscoveredPortAttributes()
SMHBA_GetPortAttributesByWWN()
SMHBA_GetNumberofPorts()
SMHBA_GetPortType()
SMHBA_GetProtocolStatistics()
SMHBA_GetPhyStatistics()
SMHBA_GetBindingCapability()
SMHBA_GetBindingSupport()
SMHBA_SetBindingSupport()
SMHBA_GetTargetMapping()
SMHBA_GetPersistentBinding()
SMHBA_SetPersistentBinding()
SMHBA_RemoveAllPersistentBindings()
SMHBA_GetLUNStatistics()
SMHBA_SendScsiInquiry()
SMHBA_SendReportLuns()
SMHBA_SendReadCapacity()
SMHBA_RegisterForAdapterAddEvents()
SMHBA_RegisterForAdapterEvents()
SMHBA_RegisterForAdapterPortEvents()
SMHBA_RegisterForAdapterPortStatEvents()
SMHBA_RegisterForAdapterPhyStatEvents()
SMHBA_RegisterForTargetEvents()
HBA_RegisterForLinkEvents()
HBA_RemoveCallback()
For Serial Attached HBA
SMHBA_GetSASPhyAttributes()
SMHBA_SendSMPPassThru()
For Fibre Channle HBA
SMHBA_GetFCPhyAttributes()
HBA_SendCTPassThruV2()
HBA_SetRNIDMgmtInfo()
HBA_GetRNIDMgmtInfo()
HBA_SendRNIDV2()
HBA_SendRPL()
HBA_SendRPS()
HBA_SendSRL()
HBA_SendLIRR()
HBA_SendRLS()
HBA_SendTEST()
HBA_SendECHO()
Close open HBAs by callingHBA_CloseAdapter().
Unload the library by callingHBA_FreeLibrary().
Seeattributes(5) for descriptions of the following attributes:
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |