Condividi tramite


Funzione MmFreeContiguousMemorySpecifyCache (wdm.h)

La routine MmFreeContiguousMemorySpecifyCache libera un buffer allocato da una routine MmAllocateContiguousMemorySpecifyCacheXxx.

Sintassi

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

Parametri

[in] BaseAddress

Specifica l'indirizzo di base del buffer da liberare. Deve corrispondere all'indirizzo restituito dal MmAllocateContiguousMemorySpecifyCacheXxx chiamata che ha allocato il buffer.

[in] NumberOfBytes

Specifica le dimensioni in byte del buffer da liberare. Deve corrispondere alla dimensione richiesta quando il buffer è stato allocato dalla routine MmAllocateContiguousMemorySpecifyCacheXxx.

[in] CacheType

Specifica il tipo di cache del buffer da liberare. Deve corrispondere al tipo di cache richiesto quando il buffer è stato allocato dalla routine MmAllocateContiguousMemorySpecifyCacheXxx.

Valore restituito

Nessuno

Osservazioni

La routine MmFreeContiguousMemorySpecifyCache libera un blocco di memoria fisicamente contigua allocata da una chiamata precedente alla routine MmAllocateContiguousMemorySpecifyCache o MmAllocateContiguousMemorySpecifyCacheNode. Tuttavia, MmFreeContiguousMemory è la routine preferita da utilizzare per liberare memoria allocata da un MmAllocateContiguousMemorySpecifyCachexxx routine. MmFreeContiguousMemory è più veloce di MmFreeContiguousMemorySpecifyCache e richiede meno parametri.

Fabbisogno

Requisito Valore
client minimo supportato Disponibile a partire da Windows 2000.
piattaforma di destinazione Universale
intestazione wdm.h (include Wdm.h, Ntddk.h)
libreria NtosKrnl.lib
dll NtosKrnl.exe
IRQL <= DISPATCH_LEVEL

Vedere anche

MmAllocateContiguousMemorySpecifyCache

MmAllocateContiguousMemorySpecifyCacheNode

MmFreeContiguousMemory