Completing I/O Requests

When a driver completes an I/O request, it supplies a completion status and the number of bytes of data transferred in the request. KMDF drivers can also specify a priority boost for the thread that issued the request.

Table 8-14 summarizes the I/O request completion methods that WDF drivers can call. All the UMDF methods belong to the IWDFIoRequest interface.

Table 8-14. I/O Request Completion Methods

Action

UMDF method

KMDF method

Completes an I/O request with status and the default priority boost.

Complete

WdfRequestComplete

Completes an I/O request with status, the number of bytes transferred, and the default priority boost.

CompleteWithInformation

WdfRequestCompleteWithInformation

Completes an I/O request with status, number ...

Get Developing Drivers with the Windows® Driver Foundation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.