Função MmFreeContiguousMemorySpecifyCache (ntddk.h)

A rotina MmFreeContiguousMemorySpecifyCache libera um buffer alocado por uma rotina MmAllocateContiguousMemorySpecifyCacheXxx .

Sintaxe

void MmFreeContiguousMemorySpecifyCache(
  [in] PVOID               BaseAddress,
  [in] SIZE_T              NumberOfBytes,
  [in] MEMORY_CACHING_TYPE CacheType
);

Parâmetros

[in] BaseAddress

Especifica o endereço base do buffer a ser liberado. Deve corresponder ao endereço retornado pela chamada MmAllocateContiguousMemorySpecifyCacheXxx que alocou o buffer.

[in] NumberOfBytes

Especifica o tamanho em bytes do buffer a ser liberado. Deve corresponder ao tamanho solicitado quando o buffer foi alocado pela rotina MmAllocateContiguousMemorySpecifyCacheXxx .

[in] CacheType

Especifica o tipo de cache do buffer a ser liberado. Deve corresponder ao tipo de cache solicitado quando o buffer foi alocado pela rotina MmAllocateContiguousMemorySpecifyCacheXxx .

Retornar valor

Nenhum

Comentários

A rotina MmFreeContiguousMemorySpecifyCache libera um bloco de memória fisicamente contígua que foi alocado por uma chamada anterior para a rotina MmAllocateContiguousMemorySpecifyCache ou MmAllocateContiguousMemorySpecifyCacheNode . No entanto, MmFreeContiguousMemory é a rotina preferida a ser usada para liberar memória alocada por uma rotina MmAllocateContiguousMemorySpecifyCacheXxx . MmFreeContiguousMemory é mais rápido que MmFreeContiguousMemorySpecifyCache e requer menos parâmetros.

Requisitos

Requisito Valor
Cliente mínimo com suporte Disponível a partir do Windows 2000.
Plataforma de Destino Universal
Cabeçalho ntddk.h (inclua Wdm.h, Ntddk.h)
Biblioteca NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= DISPATCH_LEVEL

Confira também

MmAllocateContiguousMemorySpecifyCache

MmAllocateContiguousMemorySpecifyCacheNode

MmFreeContiguousMemory