Fibre Channel SNIA HBA API Programmer's Guide
HBA_STATUS_ERROR_UNAVAILABLE
Returned when the
corresponding handle's
adapter is not available.
Call order sequence: See Appendix A.
Example code:
unsigned char test_ct_command[24] = {
0x01, 0x00, 0x00, 0x00,
0xFC, 0x02, 0x00, 0x00,
0x01, 0x00, 0x00, 0x,00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
}; /* GA_NXT CT command (with zoning) */
HBA_STATUS status;
HBA_HANDLE adapter_handle;
unsigned char test_ct_output[4096];
memset(test_ct_output, 0, sizeof(test_ct_output));
status = HBA_SendCTPassThru (adapter_handle,
test_ct_command,
sizeof(test_ct_command),
test_ct_output,
sizeof(test_ct_output));
if (status == HBA_STATUS_OK)
{
printf("HBA_SendCTPassThru with Zoning -"
" HBA_STATUS_OK\n");
printf("HBA_SendCTPassThru - ct(%02X%02X) ioctl"
" successful\n"
"%02X %02X %02X %02X,%02X,%02X,%02X"
" %02X %02X %02X %02X,%02X,%02X,%02X"
" %02X %02X %02X %02X %02X %02X\n",
test_ct_command[8], test_ct_command[9],
test_ct_output[0], test_ct_output[1],
test_ct_output[2], test_ct_output[3],
test_ct_output[4], test_ct_output[5],
test_ct_output[6], test_ct_output[7],
test_ct_output[8], test_ct_output[9],
test_ct_output[10], test_ct_output[11],
test_ct_output[12], test_ct_output[13],
test_ct_output[14], test_ct_output[15],
test_ct_output[16], test_ct_output[17],
test_ct_output[18], test_ct_output[19]);
} else
{
printf ("HBA_SendCTPassThru - Failed\n");
}
HBA_GetEventBuffer
This API is supported on systems running HP-UX 11iv2 or HP-UX 11iv3 FibrChanl-01 0909
bundle and above. HBA_STATUS_ERROR_NOT_SUPPORTED is returned on other Fibre Channel
release.
Function:
HBA_STATUS HBA_GetEventBuffer(
HBA_HANDLE handle,
PHBA_EVENTINFO event_buffer,
HBA_UINT32 *event_count
);
Purpose: Removes and returns next events from the HBA's event queue.
22 HBA Common Library APIs