MmFreeMappingAddress - NtDoc

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

VOID MmFreeMappingAddress(
  [in] PVOID BaseAddress,
  [in] ULONG PoolTag
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-mmfreemappingaddress)

MmFreeMappingAddress function

Description

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

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.

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.

See also

MmAllocateMappingAddress

MmMapLockedPagesWithReservedMapping

MmUnmapReservedMapping