WdfDeviceUnmapIoSpace function

[Applies to UMDF only]

The WdfDeviceUnmapIoSpace function unmaps a specified range of physical addresses previously mapped by the WdfDeviceMapIoSpace function.

Syntax

void WdfDeviceUnmapIoSpace(
  WDFDEVICE Device,
  PVOID     PseudoBaseAddress,
  SIZE_T    NumberOfBytes
);

Parameters

Device

A handle to a framework device object.

PseudoBaseAddress

The address of a location that receives a pointer to the pseudo base address.

NumberOfBytes

Specifies a value greater than zero, indicating the number of bytes to be mapped.

Return Value

This function does not return a value.

Remarks

This function is the UMDF version 2 equivalent of IWDFDevice3::UnmapIoSpace.

If a driver calls WdfDeviceMapIoSpace in EvtDevicePrepareHardware callback, it must call WdfDeviceUnmapIoSpace in its EvtDeviceReleaseHardware callback.

Requirements

   
Minimum supported client Windows 8.1
Target Platform Universal
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)
Library WUDFx02000.lib
DLL WUDFx02000.dll
IRQL PASSIVE_LEVEL

See Also

IWDFDevice3::UnmapIoSpace

WdfDeviceMapIoSpace