Bewerken

Delen via


EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP callback function (wdfdevice.h)

[Applies to KMDF and UMDF]

A driver's EvtDeviceSelfManagedIoCleanup event callback function handles deallocation activity for the device's self-managed I/O operations, after a device has been removed.

Syntax

EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP EvtWdfDeviceSelfManagedIoCleanup;

void EvtWdfDeviceSelfManagedIoCleanup(
  [in] WDFDEVICE Device
)
{...}

Parameters

[in] Device

A handle to a framework device object.

Return value

None

Remarks

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

If the driver has registered an EvtDeviceSelfManagedIoCleanup callback function, the framework calls it after the specified device has been removed from the system. For more information about when the framework calls this callback function, see PnP and Power Management Scenarios.

The framework calls the driver's EvtDeviceSelfManagedIoCleanup callback function after it has called the driver's EvtDeviceSelfManagedIoSuspend callback function. The EvtDeviceSelfManagedIoCleanup callback function must release any system resources that the driver allocated and 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.

Requirements

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

See also

EvtDeviceSelfManagedIoFlush

EvtDeviceSelfManagedIoInit

EvtDeviceSelfManagedIoRestart

EvtDeviceSelfManagedIoSuspend