Share via


NdisMUnmapIoSpace (Compact 2013)

3/26/2014

This function releases a virtual range mapped by an initialization-time call to the NdisMMapIoSpace function.

Syntax

VOID NdisMUnmapIoSpace(
  NDIS_HANDLE MiniportAdapterHandle,
  PVOID VirtualAddress,
  UINT Length
);

Parameters

  • VirtualAddress
    [in] Specifies the base virtual address for the mapped range that was returned by the NdisMMapIoSpace function.
  • Length
    [in] Specifies the number of bytes in the range that was mapped with NdisMMapIoSpace.

Return Value

None.

Remarks

When a miniport driver is unloading, any memory range that it mapped during initialization with NdisMMapIoSpace must be released with a call to NdisMUnmapIoSpace.

The Length passed to NdisMUnmapIoSpace must match the Length originally passed to NdisMMapIoSpace.

NdisMUnmapIoSpace can be called only from a miniport driver's MiniportInitializeEx and MiniportHaltEx functions.

Requirements

Header

ndis.h

Library

ndis.dll

See Also

Reference

NDIS Mapped Memory Interface
MiniportHaltEx
MiniportInitializeEx
MiniportHalt
MiniportInitialize
NdisMMapIoSpace