EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH callback function (wdfdevice.h)

[Applies to KMDF and UMDF]

A driver's EvtDeviceSelfManagedIoFlush event callback function handles flush activity for the device's self-managed I/O operations.

Syntax

EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH EvtWdfDeviceSelfManagedIoFlush;

void EvtWdfDeviceSelfManagedIoFlush(
  WDFDEVICE Device
)
{...}

Parameters

Device

[in] A handle to a framework device object.

Return value

None

Remarks

To register an EvtDeviceSelfManagedIoFlush callback function, a driver must call WdfDeviceInitSetPnpPowerEventCallbacks.

If the driver has registered an EvtDeviceSelfManagedIoFlush callback function, the framework calls it after the device has been removed. The driver should flush (that is, remove) I/O requests that are associated with the device's self-managed I/O operations.

For more information about when the framework calls this callback function, see PnP and Power Management Scenarios.

For more information about drivers that provide this callback function, see Using Self-Managed I/O.

You must declare the function by using the EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH type. For more information, see the following Example section.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)
IRQL PASSIVE_LEVEL

See also

EvtDeviceSelfManagedIoCleanup

EvtDeviceSelfManagedIoInit

EvtDeviceSelfManagedIoRestart

EvtDeviceSelfManagedIoSuspend