MmUnmapReservedMapping function

The MmUnmapReservedMapping routine unmaps a memory buffer that was mapped by the MmMapLockedPagesWithReservedMapping routine.

Syntax

VOID MmUnmapReservedMapping(
  _In_ PVOID BaseAddress,
  _In_ ULONG PoolTag,
  _In_ PMDLX MemoryDescriptorList
);

Parameters

BaseAddress

Pointer to the beginning of the reserved virtual memory range. This must be an address returned by MmMapLockedPagesWithReservedMapping.

PoolTag

Specifies the pool tag for the reserved memory buffer. This must be identical to the value specified in the PoolTag parameter of the call to MmAllocateMappingAddress that initially reserved the buffer.

MemoryDescriptorList

Pointer to the MDL that describes the physical memory mapping.

Return Value

None

Requirements

   
Windows version Available in Windows XP and later versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<=DISPATCH_LEVEL"

See Also

MmAllocateMappingAddress

MmFreeMappingAddress

MmMapLockedPagesWithReservedMapping

Send comments about this topic to Microsoft