/*
* PROJECT: ReactOS Kernel
* LICENSE: GPL - See COPYING in the top level directory
-* FILE: ntoskrnl/cm/cm_x.h
+* FILE: ntoskrnl/include/internal/cm_x.h
* PURPOSE: Inlined Functions for the Configuration Manager
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
*/
(CmpTestHiveFlusherLockShared((PCMHIVE)h) == TRUE) || \
(CmpTestHiveFlusherLockExclusive((PCMHIVE)h) == TRUE) || \
(CmpTestRegistryLockExclusive() == TRUE));
-
-//
-// Asserts that either the registry or the KCB is locked
-//
-#define CMP_ASSERT_HASH_ENTRY_LOCK(k) \
-{ \
- ASSERT(((GET_HASH_ENTRY(CmpCacheTable, k).Owner == \
- KeGetCurrentThread())) || \
- (CmpTestRegistryLockExclusive() == TRUE)); \
-}
-
-//
-// Gets the page attached to the KCB
-//
-#define CmpGetAllocPageFromKcb(k) \
- (PCM_ALLOC_PAGE)(((ULONG_PTR)(k)) & ~(PAGE_SIZE - 1))
-
-//
-// Gets the page attached to the delayed allocation
-//
-#define CmpGetAllocPageFromDelayAlloc(a) \
- (PCM_ALLOC_PAGE)(((ULONG_PTR)(a)) & ~(PAGE_SIZE - 1))