HBA_GetAdapterAttributes - retrieve attributes about a specific HBA
cc [ flag... ] file... -lHBAAPI [ library... ]
#include <hbaapi.h>
HBA_STATUS HBA_GetAdapterAttributes(HBA_HANDLE handle,
HBA_ADAPTERATTRIBUTES *hbaattributes);
handle
hbaattributes
The HBA_GetAdapterAttributes() function retrieves the adapter attributes structure for a given HBA. The caller is responsible for allocating hbaattributes.
Upon successful completion, HBA_STATUS_OK is returned. Otherwise, an error value is returned and the values in hbaattributes are undefined.
See libhbaapi(3LIB) for general error status values.
Example 1 Return adapter attributes.
The following example returns the adapter attributes into hbaAttrs for the given handle.
if ((status = HBA_GetAdapterAttributes(handle, &hbaAttrs)) !=
HBA_STATUS_OK) {
fprintf(stderr, "Unable to get adapter attributes for "
"HBA %d with name \"%s\".\n", hbaCount, adaptername);
HBA_CloseAdapter(handle);
continue;
}
See attributes(5) for descriptions of the following attributes:
| ||||||||||||
HBA_OpenAdapter(3HBAAPI), libhbaapi(3LIB), attributes(5)
T11 FC-MI Specification
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |