Bewerken

Delen via


MmFreeMappingAddress function (wdm.h)

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

Syntax

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

Parameters

[in] BaseAddress

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

[in] 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 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

Requirement Value
Minimum supported client 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 <=APC_LEVEL

See also

MmAllocateMappingAddress

MmMapLockedPagesWithReservedMapping

MmUnmapReservedMapping