NdisMUnmapIoSpace (NDIS 5.1) function
Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
NdisMUnmapIoSpace releases a virtual range mapped by an initialization-time call to NdisMMapIoSpace.
Syntax
VOID NdisMUnmapIoSpace(
_In_ NDIS_HANDLE MiniportAdapterHandle,
_In_ PVOID VirtualAddress,
_In_ UINT Length
);
Parameters
MiniportAdapterHandle [in]
Specifies the handle originally input to MiniportInitialize.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.
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 NIC driver's MiniportInitialize and MiniportHalt functions.
Requirements
Target platform |
Universal |
Version |
See NdisMUnmapIoSpace. |
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
PASSIVE_LEVEL |
See also