MmFreeContiguousMemorySpecifyCache
TOC
Collapse the table of content
Expand the table of content

MmFreeContiguousMemorySpecifyCache routine

The MmFreeContiguousMemorySpecifyCache routine frees a buffer that was allocated by an MmAllocateContiguousMemorySpecifyCacheXxx routine.

Syntax


VOID MmFreeContiguousMemorySpecifyCache(
  _In_ PVOID               BaseAddress,
  _In_ SIZE_T              NumberOfBytes,
  _In_ MEMORY_CACHING_TYPE CacheType
);

Parameters

BaseAddress [in]

Specifies the base address of the buffer to be freed. Must match the address returned by the MmAllocateContiguousMemorySpecifyCacheXxx call that allocated the buffer.

NumberOfBytes [in]

Specifies the size in bytes of the buffer to be freed. Must match the size requested when the buffer was allocated by the MmAllocateContiguousMemorySpecifyCacheXxx routine.

CacheType [in]

Specifies the cache type of the buffer to be freed. Must match the cache type requested when the buffer was allocated by the MmAllocateContiguousMemorySpecifyCacheXxx routine.

Return value

None

Remarks

The MmFreeContiguousMemorySpecifyCache routine frees a block of physically contiguous memory that was allocated by a previous call to the MmAllocateContiguousMemorySpecifyCache or MmAllocateContiguousMemorySpecifyCacheNode routine. However, MmFreeContiguousMemory is the preferred routine to use to free memory that was allocated by an MmAllocateContiguousMemorySpecifyCacheXxx routine. MmFreeContiguousMemory is faster than MmFreeContiguousMemorySpecifyCache and requires fewer parameters.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Ntddk.h (include Ntddk.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= DISPATCH_LEVEL

See also

MmAllocateContiguousMemorySpecifyCache
MmAllocateContiguousMemorySpecifyCacheNode
MmFreeContiguousMemory

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft