Returns traffic statistics for a specific FC-4 protocol through a specific local HBA and local end port.
HBA_STATUS HBA_GetFC4Statistics(
HBA_HANDLE handle,
HBA_WWN hbaPortWWN,
HBA_UINT8 FC4type,
HBA_FC4STATISTICS *statistics
);
The HBA_GetFC4Statistics function returns traffic statistics for a specific FC-4 protocol through a specific local HBA and local end port.
Item | Description |
---|---|
handle | A handle to an open HBA containing the end port for which FC-4 statistics can return. |
hbaPortWWN | The Port Name of the local HBA end port for which FC-4 statistics can return. |
FC4type | The Data Structure TYPE assigned by FC-FS to the FC-4 protocol for which FC-4 statistics are requested. |
statistics | A pointer to an FC-4 Statistics structure in which the statistics for the specified FC-4 protocol can be returned. |
The value of the HBA_GetFC4Statistics function is a valid status return value that indicates the reason for completion of the requested function. HBA_STATUS_OK is returned to indicate that the statistics for the specified FC-4 and end port have been returned. A valid status return value that most closely describes the result of the function should be returned to indicate a reason with no required value.
The return value for the following parameter is as follows:
Item | Description |
---|---|
statistics | Remains unchanged. The structure to which it points contains the statistics for the specified FC-4 protocol. |
Item | Description |
---|---|
HBA_STATUS_ERROR_ILLEGAL_WWN | Indicates that the HBA referenced by handle does not contain an end port with Port Name hbaPortWWN. |
HBA_STATUS_ERROR_UNSUPPORTED_FC4 | Indicates that the specified HBA end port does not support the specified FC-4 protocol. |
HBA_STATUS_ERROR | Returned to indicate any problem with no required value. |