UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS_INIT function (ucxendpoint.h)
Initializes a UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS structure with client driver's callback functions. The client driver calls this function before calling UcxEndpointCreate method to create an endpoint and register its callback functions with UCX.
Syntax
void UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS_INIT(
[out] PUCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS Callbacks,
[in] PFN_UCX_ENDPOINT_PURGE EvtEndpointPurge,
[in] PFN_UCX_ENDPOINT_START EvtEndpointStart,
[in] PFN_UCX_ENDPOINT_ABORT EvtEndpointAbort,
[in] PFN_UCX_ENDPOINT_OK_TO_CANCEL_TRANSFERS EvtEndpointOkToCancelTransfers,
[in] PFN_UCX_DEFAULT_ENDPOINT_UPDATE EvtDefaultEndpointUpdate
);
Parameters
[out] Callbacks
A pointer to a UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS structure that contains pointers to the client driver's event callback functions.
[in] EvtEndpointPurge
A pointer to client driver's implementation of the EVT_UCX_ENDPOINT_PURGE event callback function.
[in] EvtEndpointStart
A pointer to client driver's implementation of the EVT_UCX_ENDPOINT_START event callback function.
[in] EvtEndpointAbort
A pointer to client driver's implementation of the EVT_UCX_ENDPOINT_ABORT event callback function.
[in] EvtEndpointOkToCancelTransfers
A pointer to client driver's implementation of the EVT_UCX_ENDPOINT_OK_TO_CANCEL_TRANSFERS event callback function.
[in] EvtDefaultEndpointUpdate
A pointer to client driver's implementation of the EVT_UCX_DEFAULT_ENDPOINT_UPDATE event callback function.
Return value
None
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 |
Target Platform | Windows |
Minimum KMDF version | 1.0 |
Minimum UMDF version | 2.0 |
Header | ucxendpoint.h (include Ucxclass.h, Ucxendpoint.h) |