ExAllocateCacheAwareRundownProtection, fonction (wdm.h)
La routine ExAllocateCacheAwareRundownProtection alloue une structure de protection rundown conviviale pour les scénarios multiprocesseurs. La protection de l’exécution est un mécanisme de synchronisation qui permet le nettoyage sécurisé des ressources qui peuvent être accessibles par plusieurs threads.
Syntaxe
PEX_RUNDOWN_REF_CACHE_AWARE ExAllocateCacheAwareRundownProtection(
[in] __drv_strictTypeMatch(__drv_typeExpr)POOL_TYPE PoolType,
[in] ULONG PoolTag
);
Paramètres
[in] PoolType
Type de mémoire du pool à allouer. Pour obtenir une description des types de mémoire de pool disponibles, consultez POOL_TYPE.
[in] PoolTag
ULONG qui spécifie la balise de pool pour l’allocation de mémoire. La balise de pool est une valeur 32 bits utilisée pour suivre l’utilisation de la mémoire.
Valeur de retour
Retourne un pointeur vers une structure de EX_RUNDOWN_REF_CACHE_AWARE opaque ou NULL en cas d’échec de l’allocation.
Remarques
Un pilote peut appeler ExAllocateCacheAwareRundownProtection comme alternative à l’appel ExSizeOfRundownProtectionCacheAware suivi de ExInitializeRundownProtectionCacheAware.
Pour plus d’informations, consultez protection d’exécution prenant en charge le cache.
Exigences
Exigence | Valeur |
---|---|
serveur minimum pris en charge | Windows Server 2003, Service Pack 1 |
d’en-tête | wdm.h (include Wdm.h) |
IRQL | <= APC_LEVEL |
Voir aussi
ExAcquireRundownProtectionCacheAware
ExAcquireRundownProtectionCacheAwareEx
ExFreeCacheAwareRundownProtection
ExInitializeRundownProtectionCacheAware
ExReInitializeRundownProtectionCacheAware
ExReleaseRundownProtectionCacheAware
ExReleaseRundownProtectionCacheAwareEx