276 CmpDelayDerefKCBWorker,
288 LONG OldRefCount, NewRefCount;
296 OldRefCount = *(
PLONG)&Kcb->RefCount;
297 NewRefCount = OldRefCount - 1;
298 if (((NewRefCount & 0xFFFF) > 0) &&
301 OldRefCount) == OldRefCount))
354 ULONG OldRefCount, NewRefCount;
365 ASSERT(Kcb->RefCount == 0);
382 OldRefCount = *(
PLONG)&Kcb->InDelayClose;
389 OldRefCount) != OldRefCount)
396 Kcb->DelayedCloseIndex = 0;
399 Kcb->DelayCloseEntry =
Entry;
400 Entry->KeyControlBlock = Kcb;
428 ULONG NewRefCount, OldRefCount;
436 Entry = Kcb->DelayCloseEntry;
456 OldRefCount = *(
PLONG)&Kcb->InDelayClose;
463 OldRefCount) != OldRefCount)
470 Kcb->DelayCloseEntry =
NULL;
#define InterlockedIncrement
#define InterlockedDecrement
#define CMTRACE(x, fmt,...)
#define CM_REFERENCE_DEBUG
struct _CM_DELAYED_CLOSE_ENTRY * PCM_DELAYED_CLOSE_ENTRY
FORCEINLINE VOID CmpAcquireKcbLockExclusiveByKey(IN ULONG ConvKey)
FORCEINLINE VOID CmpReleaseKcbLockByKey(ULONG ConvKey)
#define CMP_ASSERT_KCB_LOCK(k)
PVOID NTAPI CmpAllocateDelayItem(VOID)
VOID NTAPI CmpFreeDelayItem(PVOID Entry)
VOID NTAPI CmpAddToDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
VOID NTAPI CmpDelayDerefKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
KTIMER CmpDelayDerefKCBTimer
ULONG CmpDelayedCloseSize
WORK_QUEUE_ITEM CmpDelayDerefKCBWorkItem
WORK_QUEUE_ITEM CmpDelayCloseWorkItem
ULONG CmpDelayCloseIntervalInSeconds
KGUARDED_MUTEX CmpDelayDerefKCBLock
VOID NTAPI CmpArmDelayedCloseTimer(VOID)
ULONG CmpDelayDerefKCBIntervalInSeconds
LIST_ENTRY CmpDelayedLRUListHead
KGUARDED_MUTEX CmpDelayedCloseTableLock
VOID NTAPI CmpInitDelayDerefKCBEngine(VOID)
ULONG CmpDelayedCloseElements
BOOLEAN CmpDelayCloseWorkItemActive
BOOLEAN CmpDelayDerefKCBWorkItemActive
VOID NTAPI CmpRemoveFromDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb)
LIST_ENTRY CmpDelayDerefKCBListHead
VOID NTAPI CmpInitializeDelayedCloseTable(VOID)
KTIMER CmpDelayCloseTimer
VOID NTAPI CmpCleanUpKcbCacheWithLock(IN PCM_KEY_CONTROL_BLOCK Kcb, IN BOOLEAN LockHeldExclusively)
VOID NTAPI CmpDereferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
VOID NTAPI CmpUnlockRegistry(VOID)
VOID NTAPI CmpLockRegistry(VOID)
VOID NTAPI KeInitializeDpc(IN PKDPC Dpc, IN PKDEFERRED_ROUTINE DeferredRoutine, IN PVOID DeferredContext)
#define RemoveEntryList(Entry)
#define InsertTailList(ListHead, Entry)
#define InsertHeadList(ListHead, Entry)
#define IsListEmpty(ListHead)
#define RemoveTailList(ListHead)
#define RemoveHeadList(ListHead)
#define InitializeListHead(ListHead)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
VOID FASTCALL KeInitializeGuardedMutex(OUT PKGUARDED_MUTEX GuardedMutex)
VOID FASTCALL KeReleaseGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex)
VOID FASTCALL KeAcquireGuardedMutex(IN PKGUARDED_MUTEX GuardedMutex)
#define InterlockedCompareExchange
#define _Function_class_(n)
base of all file and directory entries
LIST_ENTRY DelayedLRUList
PCM_KEY_CONTROL_BLOCK KeyControlBlock
struct _LIST_ENTRY * Blink
BOOLEAN NTAPI KeSetTimer(IN OUT PKTIMER Timer, IN LARGE_INTEGER DueTime, IN PKDPC Dpc OPTIONAL)
VOID NTAPI KeInitializeTimer(OUT PKTIMER Timer)
#define CONTAINING_RECORD(address, type, field)
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
VOID NTAPI ExQueueWorkItem(IN PWORK_QUEUE_ITEM WorkItem, IN WORK_QUEUE_TYPE QueueType)
#define ExInitializeWorkItem(Item, Routine, Context)
_In_opt_ PVOID _In_opt_ PVOID SystemArgument1
_In_opt_ PVOID DeferredContext
_In_opt_ PVOID _In_opt_ PVOID _In_opt_ PVOID SystemArgument2