Skip Navigation Links | |
Exit Print View | |
man pages section 3: Extended Library Functions, Volume 2 Oracle Solaris 11.1 Information Library |
Extended Library Functions, Volume 2
HBA_GetAdapterAttributes(3HBAAPI)
HBA_GetAdapterPortAttributes(3HBAAPI)
HBA_GetBindingCapability(3HBAAPI)
HBA_GetBindingSupport(3HBAAPI)
HBA_GetDiscoveredPortAttributes(3HBAAPI)
HBA_GetFcpPersistentBinding(3HBAAPI)
HBA_GetFcpTargetMapping(3HBAAPI)
HBA_GetFcpTargetMappingV2(3HBAAPI)
HBA_GetNumberOfAdapters(3HBAAPI)
HBA_GetPersistentBindingV2(3HBAAPI)
HBA_GetPortAttributesByWWN(3HBAAPI)
HBA_GetPortStatistics(3HBAAPI)
HBA_GetVendorLibraryAttributes(3HBAAPI)
HBA_GetWrapperLibraryAttributes(3HBAAPI)
HBA_RefreshAdapterConfiguration(3HBAAPI)
HBA_RefreshInformation(3HBAAPI)
HBA_RegisterForAdapterAddEvents(3HBAAPI)
HBA_RegisterForAdapterEvents(3HBAAPI)
HBA_RegisterForAdapterPortEvents(3HBAAPI)
HBA_RegisterForAdapterPortStatEvents(3HBAAPI)
HBA_RegisterForTargetEvents(3HBAAPI)
HBA_RemoveAllPersistentBindings(3HBAAPI)
HBA_RemovePersistentBinding(3HBAAPI)
HBA_ScsiReadCapacityV2(3HBAAPI)
HBA_SetBindingSupport(3HBAAPI)
HBA_SetPersistentBindingV2(3HBAAPI)
lgrp_affinity_inherit_get(3LGRP)
lgrp_affinity_inherit_set(3LGRP)
MP_AssignLogicalUnitToTPG(3MPAPI)
MP_DeregisterForObjectPropertyChanges(3MPAPI)
MP_DeregisterForObjectVisibilityChanges(3MPAPI)
MP_DisableAutoFailback(3MPAPI)
MP_GetAssociatedPathOidList(3MPAPI)
MP_GetAssociatedPluginOid(3MPAPI)
MP_GetAssociatedTPGOidList(3MPAPI)
MP_GetDeviceProductOidList(3MPAPI)
MP_GetDeviceProductProperties(3MPAPI)
MP_GetInitiatorPortOidList(3MPAPI)
MP_GetInitiatorPortProperties(3MPAPI)
MP_GetLibraryProperties(3MPAPI)
MP_GetMPLogicalUnitProperties(3MPAPI)
MP_GetMPLuOidListFromTPG(3MPAPI)
MP_GetPathLogicalUnitProperties(3MPAPI)
MP_GetPluginProperties(3MPAPI)
MP_GetProprietaryLoadBalanceOidList(3MPAPI)
MP_GetProprietaryLoadBalanceProperties(3MPAPI)
MP_GetTargetPortGroupProperties(3MPAPI)
MP_GetTargetPortOidList(3MPAPI)
MP_GetTargetPortProperties(3MPAPI)
MP_RegisterForObjectPropertyChanges(3MPAPI)
MP_RegisterForObjectVisibilityChanges(3MPAPI)
MP_SetFailbackPollingRate(3MPAPI)
MP_SetLogicalUnitLoadBalanceType(3MPAPI)
MP_SetPluginLoadBalanceType(3MPAPI)
MP_SetProbingPollingRate(3MPAPI)
- SNIA event handling functions
cc [ flag… ] file… -lHBAAPI [ library… ] #include <hbaapi.h> HBA_STATUS HBA_RegisterForAdapterEvents(void (*pCallback) (void *pData, HBA_WWN PortWWN, HBA_UINT32 eventType), void *pUserData, HBA_HANDLE handle, HBA_CALLBACKHANDLE *pCallbackHandle);
HBA_STATUS HBA_RegisterForAdapterAddEvents(void (*pCallback) (void *pData, HBA_WWN PortWWN, HBA_UINT32 eventType), void *pUserData, HBA_CALLBACKHANDLE *pCallbackHandle);
HBA_STATUS HBA_RegisterForAdapterPortEvents(void (*pCallback) (void *pData, HBA_WWN PortWWN, HBA_UINT32 eventType, HBA_UINT32 fabricPortID), void *pUserData, HBA_HANDLE handle, HBA_WWN PortWWN, HBA_CALLBACKHANDLE *pCallbackHandle);
HBA_STATUS HBA_RegisterForAdapterPortStatEvents(void (*pCallback) (void *pData, HBA_WWN PortWWN, HBA_UINT32 eventType), void *pUserData, HBA_HANDLE handle, HBA_WWN PortWWN, HBA_PortStatistics stats, HBA_UINT32 statType, HBA_CALLBACKHANDLE *pCallbackHandle);
HBA_STATUS HBA_RegisterForTargetEvents(void (*pCallback) (void *pData, HBA_WWN hbaPortWWN, HBA_WWN discoveredPortWWN, HBA_UINT32 eventType), void * pUserData, HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN discoveredPortWWN, HBA_CALLBACKHANDLE *pCallbackHandle, HBA_UINT32 allTargets);
HBA_STATUS HBA_RegisterForLinkEvents(void (*pCallback) (void *pData, HBA_WWN adapterWWN, HBA_UINT32 eventType, void * pRLIRBuffer, HBA_UINT32 RLIRBufferSize), void *pUserData, void *PLIRBuffer, HBA_UINT32 RLIRBufferSize, HBA_HANDLE handle, HBA_CALLBACKHANDLE *pCallbackHandle);
HBA_STATUS HBA_RemoveCallback(HBA_CALLBACKHANDLE *pCallbackHandle);
A pointer to the entry of the callback routine.
the pUserData that is passed in from registration. This parameter can be used to correlate the event with the source of its event registration.
The Port WWN of the HBA for which the event is being reported.
The Port WWN of the HBA for which the target event is being reported.
The Port WWN of the target for which the target event is being reported.
The Port WWN of the of the HBA for which the link event is being reported.
a value indicating the type of event that has occured.
Possible values are HBA_EVENT_ADAPTER_REMOVE and HBA_EVENT_ADAPTER_CHANGE.
The only possible value is HBA_EVENT_ADAPTER_ADD.
Possible values are HBA_EVENT_PORT_OFFLINE, HBA_EVENT_PORT_ONLINE, HBA_EVENT_PORT_NEW_TARGETS, HBA_EVENT_PORT_FABRIC, and HBA_EVENT_PORT_UNKNOWN.
Possible values are HBA_EVENT_PORT_STAT_THRESHOLD and HBA_EVENT_PORT_STAT_GROWTH.
If the value is HBA_EVENT_LINK_INCIDENT, RLIR has occured and information is in the RLIRBuffer. If the value is HBA_EVENT_LINK_UNKNOWN, a fabric link or topology change has occured and was not detected by RLIR. The RLIRBuffer is ignored
Possible values are HBA_EVENT_TARGET_OFFLINE, HBA_EVENT_TARGET_ONLINE, HBA_EVENT_TARGET_REMOVED, and HBA_EVENT_TARGET_UNKNOWN.
If the event is of type HBA_EVENT_PORT_FABRIC, this parameter will be the RSCN-affected Port ID page as defined in FC-FS. It is ignored for all other event types.
A pointer to a buffer where RLIR data may be passed to the callback function. The buffer will be overwritten for each fabric link callback function, but will not be overwritten within a single call to the callback function.
Size in bytes of the RLIRBuffer.
a pointer passed with each event to the callback routine that can be used to correlate the event with the source of its event registration
A pointer to a buffer where RLIR data may be passed to the callback function. The buffer will be overwritten for each fabric link callback function, but will not be overwritten within a single call to the callback function.
Size in bytes of the RLIRBuffer.
a handle to the HBA that event callbacks are being requested
The Port WWN of the HBA for which the event is being reported.
The Port WWN of the HBA of which the event callbacks are being requested.
an HBA_PortStatistics structure which indicates the counters to be monitored. If statType is HBA_EVENT_PORT_STAT_THRESHOLD, any non-null values are thresholds for which to watch. If statType is HBA_EVET_PORT_STAT_GROWTH, any non-null values are growth rate numbers over 1 minute.
A value either HBA_EVENT_PORT_STAT_TRHESHOLD or HBA_EVENT_PORT_STAT_GROWTH used to determine whether counters registered are for threshold crossing or growth rate.
The Port WWN of the target that the event callbacks are being requested of.
A pointer to structure in which an opaque identifier is returned that is used to deregister the callback. To deregister this event, call HBA_RemoveCallback() with this pCallbackHandle as an argument.
If value is non-zero, discoveredPortWWN is ignored. Events for all discovered targets will be registered by this call. If value is zero, only events for discoveredPortWWN will be registered.
A handle returned by the event registration function of the routine that is to be removed.
The HBA_RegisterForAdapterEvents() function registers an application-defined function that is called when an HBA category asynchronous event occurs. An HBA catetory event can have one of the following event types: HBA_EVENT_ADAPTER_REMOVE or HBA_EVENT_ADAPTER_CHANGE. If either of these events occur, the callback function is called, regardless of whether the HBA handle specified at registration is open. The HBA_RemoveCallback() function must be called to end event delivery.
The HBA_RegisterForAdapterAddEvents() function registers an application-defined function that is called whenever an HBA add category asynchronous event occurs. The callback function is called when a new HBA is added to the local system. The HBA_RemoveCallback() function must be called to end event delivery.
The HBA_RegisterForAdapterPortEvents() function registers an application-defined function that is called on the specified HBA whenever a port category asynchronous event occurs. A port catetory event can be one of the following event types: HBA_EVENT_PORT_OFFLINE, HBA_EVENT_PORT_ONLINE, HBA_EVENT_PORT_NEW_TARGETS, HBA_EVENT_PORT_FABRIC, or HBA_EVENT_PORT_UNKNOWN. The handle need not be open for callbacks to occur. The HBA_RemoveCallback() function must be called to end event delivery.
The HBA_RegisterForAdapterPortStatEvents() function defines conditions that would cause an HBA port statistics asynchronous event and registers an application-defined function that is called whenever one of these events occur. An HBA port statistics asynchronous event can be one of the following event types: HBA_EVENT_PORT_STAT_THRESHOLD or HBA_EVENT_PORT_STAT_GROWTH. More than one statistic can be registered with one call by setting multiple statistics in the stats argument. For threshold events, once a specific threshold has been crossed, the callback is automatically deregistered for that statistic. The handle need not be open for callbacks to occur. The HBA_RemoveCallback() function must be called to end event delivery.
The HBA_RegisterForTargetEvents() function registers an application-defined function that is called on the specified HBA whenever a target category asynchronous event occurs. A Target category event can be one of the following event types: HBA_EVENT_TARGET_OFFLINE, HBA_EVENT_TARGET_ONLINE, HBA_EVENT_TARGET_REMOVED, HBA_EVENT_TARGET_UNKNOWN. The handle need not be open for callbacks to occur. The HBA_RemoveCallback() function must be called to end event delivery.
The HBA_RegisterForLinkEvents() function registers an application defined function that is called on the specified HBA whenever a link category asynchronous event occurs. A link category event can be one of the following event types: HBA_EVENT_LINK_INCIDENT or HBA_EVENT_LINK_UNKNOWN. RLIR ELS is the only fabric link event type and the callback function is called whenever is it detected by the HBA. The handle need not be open for callbacks to occur. The HBA_RemoveCallback() function must be called to end event delivery.
The HBA_RemoveCallback() function removes the HBA_CALLBACKHANDLE instance of the callback routine.
Upon successful completion, HBA_RegisterForAdapterEvents(), HBA_RegisterForAdapterAddEvents(), HBA_RegisterForAdapterPortEvents(), HBA_RegisterForAdapterPortStatEvents(), HBA_RegisterForTargetEvents(), and HBA_RegisterForLinkEvents() return HBA_STATUS_OK and pCallbackHandle may be used to deregister the callback. Otherwise, an error value is returned and pCallbackHandle is not valid.
Upon successful completion, HBA_RemoveCallback() returns HBA_STATUS_OK. Otherwise, an error value is returned.
See libhbaapi(3LIB) for general error status values.
See attributes(5) for descriptions of the following attributes:
|