Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (g - h) HBA_GetFcpTargetMapping(3)
if ((status = HBA_GetFcpTargetMapping(adapterhandle, maps)) != HBA_STATUS_OK)
{
printf ("HBA_GetFcpTargetMapping error %d", status);
}
printf ("HBA_GetFcpTargetMapping returned %u targets", maps->NumberOfEntries);
}
else {
printf ("Malloc failed");
}
}
}
else
{
if (status != HBA_STATUS_OK) {
printf ("HBA_GetFcpTargetMapping error %d", status);
}
}
RETURN VALUES
The HBA_GetFcpTargetMapping( ) function returns these values:
HBA_STATUS_OK
The call to this function was successful.
HBA_STATUS_ERROR
An internal library or system error was detected.
HBA_STATUS_ERROR_ARG
The pointer passed to this function is NULL.
HBA_STATUS_ERROR_BUSY
The library is busy processing a call that cannot be executed concurrently with
other calls and that might be modifying internal data structures.
HBA_STATUS_ERROR_MORE_DATA
The buffer is too small to return the required information.
HBA_STATUS_ERROR_UNAVAILABLE
The adapter to which the handle corresponds is not available.
ERRORS
None.
RELATED INFORMATION
Functions: HBA_CloseAdapter(3), HBA_GetAdapterAttributes(3),
HBA_GetAdapterPortAttributes(3), HBA_GetDiscoveredPortAttributes(3),
HBA_GetNumberOfAdapters(3), HBA_GetPortStatistics(3), HBA_GetVersion(3),
HBA_LoadLibrary(3), HBA_FreeLibrary(3), HBA_OpenAdapter(3),
HBA_RefreshInformation(3).
Files: HBAAPI(5).
527187-017 Hewlett-Packard Company 3181