// wdm.h
VOID MmFreeMappingAddress(
[in] PVOID BaseAddress,
[in] ULONG PoolTag
);
View the official Windows Driver Kit DDI reference
No description available.
The MmFreeMappingAddress routine frees a range of virtual memory reserved by the MmAllocateMappingAddress routine.
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.
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.
MmMapLockedPagesWithReservedMapping