Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Thursday, June 13, 2019
 
 

HBA_GetNumberOfAdapters(3HBAAPI)

Name

HBA_GetNumberOfAdapters - report the number of HBAs known to the Common Library

Synopsis

cc [ flag… ] file–lHBAAPI [ library… ]
#include <hbaapi.h>

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(7) for descriptions of the following attributes:

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

T11 FC-MI Specification