NdisMUnmapIoSpace

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

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

Parameters

MiniportAdapterHandle

Specifies the handle originally input to MiniportInitialize.

VirtualAddress

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

Length

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

Comments

When a miniport 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 NIC driver's MiniportInitialize and MiniportHalt functions.

Callers of NdisMUnmapIoSpace run at IRQL PASSIVE_LEVEL.

See Also

MiniportHalt, MiniportInitialize, NdisMMapIoSpace