Condividi tramite


Funzione ExAllocateCacheAwareRundownProtection (wdm.h)

La routine ExAllocateCacheAwareRundownProtection alloca una struttura di protezione rundown compatibile con la cache per scenari multiprocessore. La protezione del rundown è un meccanismo di sincronizzazione che consente la pulizia sicura delle risorse a cui è possibile accedere da più thread.

Sintassi

PEX_RUNDOWN_REF_CACHE_AWARE ExAllocateCacheAwareRundownProtection(
  [in] __drv_strictTypeMatch(__drv_typeExpr)POOL_TYPE PoolType,
  [in] ULONG                                          PoolTag
);

Parametri

[in] PoolType

Tipo di memoria del pool da allocare. Per una descrizione dei tipi di memoria del pool disponibili, vedere POOL_TYPE.

[in] PoolTag

ULONG che specifica il tag del pool per l'allocazione di memoria. Il tag del pool è un valore a 32 bit usato per tenere traccia dell'utilizzo della memoria.

Valore restituito

Restituisce un puntatore a una struttura EX_RUNDOWN_REF_CACHE_AWARE opaca o NULL se l'allocazione non riesce.

Osservazioni

Un driver può chiamare ExAllocateCacheAwareRundownProtection come alternativa alla chiamata di ExSizeOfRundownProtectionCacheAware seguito da ExInitializeRundownProtectionCacheAware.

Per altre informazioni, vedere protezione con riconoscimento della cache.

Fabbisogno

Requisito Valore
server minimo supportato Windows Server 2003, Service Pack 1
intestazione wdm.h (include Wdm.h)
IRQL <= APC_LEVEL

Vedere anche

ExAcquireRundownProtectionCacheAware

ExAcquireRundownProtectionCacheAwareEx

ExFreeCacheAwareRundownProtection

ExInitializeRundownProtectionCacheAware

ExReInitializeRundownProtectionCacheAware

ExReleaseRundownProtectionCacheAware

ExReleaseRundownProtectionCacheAwareEx

ExRundownCompletedCacheAware

ExSizeOfRundownProtectionCacheAware

ExWaitForRundownProtectionReleaseCacheAware