Expand Minimize

MmFreeMappingAddress routine

The MmFreeMappingAddress routine frees a range of virtual memory reserved by the MmAllocateMappingAddress routine.

Syntax


VOID MmFreeMappingAddress(
  _In_  PVOID BaseAddress,
  _In_  ULONG PoolTag
);

Parameters

BaseAddress [in]

Pointer to the beginning of the reserved memory buffer to free. This must be an address previously returned by MmAllocateMappingAddress.

PoolTag [in]

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 reserved the buffer.

Return value

None

Remarks

MmFreeMappingAddress frees a range of memory reserved by MmAllocateMappingAddress. If the memory range has already been mapped by MmMapLockedPagesWithReservedMapping, it must first be unmapped with MmUnmapReservedMapping before the memory range can be freed.

Requirements

Version

Available in Windows XP and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<=APC_LEVEL

See also

MmAllocateMappingAddress
MmMapLockedPagesWithReservedMapping
MmUnmapReservedMapping

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft