HBA_GetNumberOfAdapters Subroutine
Purpose
Returns the number of adapters discovered on the system.
Library
Common Host Bus Adapter Library (libHBAAPI.a)
Syntax
#include <sys/hbaapi.h>
HBA_UINT32 HBA_GetNumberOfAdapters ()
Description
The HBA_GetNumberOfAdapters subroutine returns the number of HBAs supported by the library. The value returned is the current number of HBAs and reflects dynamic change of the HBA inventory without requiring a restart of the system, driver, or library.
Return Values
The HBA_GetNumberOfAdapters subroutine returns an integer representing the number of adapters on the machine.