EvtDmaTransactionConfigureDmaChannel
EvtDmaTransactionDmaTransferComplete
EvtReserveDma
WDF_DMA_ENABLER_CONFIG_FLAGS
WDF_DMA_SYSTEM_PROFILE_CONFIG
WDF_DMA_SYSTEM_PROFILE_CONFIG_INIT
WdfDmaEnablerConfigureSystemProfile method
WdfDmaTransactionAllocateResources method
WdfDmaTransactionCancel method
WdfDmaTransactionFreeResources method
WdfDmaTransactionGetTransferInfo method
WdfDmaTransactionInitializeUsingOffset method
WdfDmaTransactionSetChannelConfigurationCallback method
WdfDmaTransactionSetDeviceAddressOffset method
WdfDmaTransactionSetImmediateExecution method
WdfDmaTransactionSetTransferCompleteCallback method
WdfDmaTransactionStopSystemTransfer method
WdfDmaTransactionWdmGetTransferContext method
Collapse the table of content
Expand the table of content
展开 最小化

WdfDmaTransactionGetBytesTransferred 方法

The WdfDmaTransactionGetBytesTransferred method returns the total number of bytes that have been transferred for a specified DMA transaction.

语法

size_t WdfDmaTransactionGetBytesTransferred(
  [in]  WDFDMATRANSACTION DmaTransaction
);

参数

DmaTransaction [in]

A handle to a DMA transaction object that the driver obtained from a previous call to WdfDmaTransactionCreate.

返回值

WdfDmaTransactionGetBytesTransferred returns the total number of bytes that have been transferred for the DMA transaction that the DmaTransaction parameter specified.

A bug check occurs if the driver supplies an invalid object handle.

评论

Framework-based drivers typically call WdfDmaTransactionGetBytesTransferred from within an EvtInterruptDpc event callback function, after all DMA transfers are complete, to obtain the final transferred byte count. Drivers typically use the final byte count as input to the WdfRequestCompleteWithInformation method. For more information about this method, see Completing a DMA Transaction.

示例

For a code example that uses WdfDmaTransactionGetBytesTransferred, see WdfDmaTransactionDmaCompleted.

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfdmatransaction.h (包括Wdf.h)

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

<=DISPATCH_LEVEL

另请参见

EvtInterruptDpc
WdfDmaTransactionCreate
WdfDmaTransactionDmaCompleted
WdfRequestCompleteWithInformation

 

 

社区附加资源

添加
显示:
© 2015 Microsoft