EVT_UCX_ENDPOINT_OK_TO_CANCEL_TRANSFERS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ucxendpoint.h

EVT_UCX_ENDPOINT_OK_TO_CANCEL_TRANSFERS EvtUcxEndpointOkToCancelTransfers;

VOID EvtUcxEndpointOkToCancelTransfers(
  [in] UCXENDPOINT UcxEndpoint
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ucxendpoint-evt_ucx_endpoint_ok_to_cancel_transfers)

EVT_UCX_ENDPOINT_OK_TO_CANCEL_TRANSFERS callback function

Description

The client driver's implementation that UCX calls to notify the controller driver that it can complete cancelled transfers on the endpoint.

Parameters

UcxEndpoint [in]

A handle to a UCXENDPOINT object that represents the endpoint.

Remarks

The UCX client driver registers this callback function with the USB host controller extension (UCX) by calling the UcxEndpointCreate method.

Before completing the URB associated with the transfer, the client driver calls UcxEndpointNeedToCancelTransfers and then waits for UCX to call this function. Then the client driver can complete the URB with STATUS_CANCELLED.

[!NOTE] If GUID_USB_CAPABILITY_CLEAR_TT_BUFFER_ON_ASYNC_TRANSFER_CANCEL capability is supported, the hub driver may send a control transfer to clear the TT (Transaction Translator) buffer before UCX calls this function.