HBA_ADAPTER_CALLBACK routine

The HBA_ADAPTER_CALLBACK routine prototype declares a user routine that notifies the user of adapter events.

Syntax

typedef void (*HBA_ADAPTER_CALLBACK)(
   void       *data,
   HBA_WWN    PortWWN,
   HBA_UINT32 eventType
);

Parameters

  • data
    Pointer to a buffer that contains data that the user provided when registering this callback routine and that is passed to the handler when the event occurs. This data can be used to correlate the event with the source of the event registration.

  • PortWWN
    Contains a 64 bit world-wide name (WWN) that uniquely identifies the HBA from which adapter events are reported. The callback routine is called whenever an adapter event occurs for this HBA. For a discussion of worldwide names, see the T11 committee's Fibre Channel HBA API specification.

  • eventType
    Indicates the event type. The values assigned to this member correspond to the values associated with the EVENT_TYPE_QUALIFIERS property qualifier.

Return value

None.

Remarks

The HBA_ADAPTER_CALLBACK routine prototype declares the callback routine that is registered by HBA_RegisterForAdapterAddEvents or HBA_RegisterForAdapterEvents.

Requirements

Target platform

Desktop

Header

Hbaapi.h (include Hbaapi.h)

See also

EVENT_TYPE_QUALIFIERS

HBA_RegisterForAdapterAddEvents

HBA_RegisterForAdapterEvents

Send comments about this topic to Microsoft