Sends a SCSI READ CAPACITY command to a Fibre Channel port.
Common Host Bus Adapter Library (libHBAAPI.a)
#include <hbaapi.h> HBA_STATUS HBA_SendReadCapacity (handle, portWWN, fcLUN, pRspBuffer, RspBufferSize, pSenseBuffer, SenseBufferSize) HBA_HANDLE handle; HBA_WWN portWWN; HBA_UINT64 fcLUN; void *pRspBuffer; HBA_UINT32 RspBufferSize; void *pSenseBuffer; HBA_UINT32 SenseBufferSize;
The HBA_SendReadCapacity subroutine sends a SCSI READ CAPACITY command to the Fibre Channel port connected to the handle parameter and specified by the portWWN and fcLUN parameters.
If successful, HBA_STATUS_OK is returned and the pRspBuffer parameter points to the response to the READ CAPACITY command. If an error occurs, HBA_STATUS_ERROR is returned.
If the portWWN value is not a valid world-wide name connected to the specified handle, HBA_STATUS_ERROR_ILLEGAL_WWN is returned. On any other types of failures, HBA_STATUS_ERROR is returned.
The HBA_SendScsiInquiry Subroutine.
Special Files in AIX 5L Version 5.2 Files Reference describes specific qualities of the files that define devices.