Common Fibre Channel HBA Information Library Functions
HBA_GetNumberOfAdapters(3HBAAPI)
NAME
HBA_GetNumberOfAdapters - report the number of HBAs known to
the Common LibrarySYNOPSIS
cc [ flag... ] file... -lHBAAPI [ library... ]
#include
HBA_UINT32 HBA_GetNumberOfAdapters(void);
DESCRIPTION
The HBA_GetNumberOfAdapters() function report the number of
HBAs known to the Common Library. This number is the sum of the number of HBAs reported by each VSL loaded by the Common Library.RETURN VALUES
The HBA_GetNumberOfAdapters() function returns the number of
adapters known to the Common Library will be returned.EXAMPLES
Example 1 Using HBA_GetNumberOfAdapters()
numberOfAdapters = HBA_GetNumberOfAdapters();
for (hbaCount = 0; hbaCount < numberOfAdapters; hbaCount++) { /* ... */ }ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 1 Sep 2003 1
Common Fibre Channel HBA Information Library FunctionsHBA_GetNumberOfAdapters(3HBAAPI)
______________________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| ____________________________|_____________________________|_
| Interface Stability | Committed || ____________________________|_____________________________|_
| | Standard: FC-HBA Version 4|
| | (API version 2) ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
| Standard | FC-MI 1.92 (API version 1) |
|_____________________________|_____________________________|
SEE ALSO
libhbaapi(3LIB), attributes(5)T11 FC-MI Specification
SunOS 5.11 Last change: 1 Sep 2003 2
Common Fibre Channel HBA Information Library FunctionsHBA_GetNumberOfAdapters(3HBAAPI)
SunOS 5.11 Last change: 1 Sep 2003 3