Returns the number of adapters discovered on the system.
Common Host Bus Adapter Library (libHBAAPI.a)
#include <sys/hbaapi.h>
HBA_UINT32 HBA_GetNumberOfAdapters ()
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.
The HBA_GetNumberOfAdapters subroutine returns an integer representing the number of adapters on the machine.