NdisMUnmapIoSpace - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

VOID NdisMUnmapIoSpace(
  [in] NDIS_HANDLE MiniportAdapterHandle,
  [in] PVOID       VirtualAddress,
  [in] UINT        Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndismunmapiospace)

NdisMUnmapIoSpace function

Description

NdisMUnmapIoSpace releases a virtual range mapped by an initialization-time call to NdisMMapIoSpace.

Parameters

MiniportAdapterHandle [in]

Specifies the handle originally input to MiniportInitializeEx.

VirtualAddress [in]

Specifies the base virtual address for the mapped range that was returned by NdisMMapIoSpace.

Length [in]

Specifies the number of bytes in the range that was mapped with NdisMMapIoSpace.

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.

See also

MiniportHaltEx

MiniportInitializeEx

NdisMMapIoSpace