MmFreeNonCachedMemory function (ntddk.h)

The MmFreeNonCachedMemory routine releases a range of noncached memory that was allocated by the MmAllocateNonCachedMemory routine.

Syntax

void MmFreeNonCachedMemory(
  [in] PVOID  BaseAddress,
  [in] SIZE_T NumberOfBytes
);

Parameters

[in] BaseAddress

Pointer to the virtual address of the memory to be freed.

[in] NumberOfBytes

Specifies the size of the range to be freed. This value must match the size passed in a preceding call to MmAllocateNonCachedMemory.

Return value

None

Remarks

The MmFreeNonCachedMemory routine performs the opposite action of MmAllocateNonCachedMemory.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header ntddk.h (include Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <=APC_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport), IrqlMmApcLte(wdm)

See also

MmAllocateNonCachedMemory