* Branch for the 0.3.14 release.
[reactos.git] / ntoskrnl / config / cmsecach.c
1 /*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/config/cmsecach.c
5 * PURPOSE: Configuration Manager - Security Cache
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include "ntoskrnl.h"
12 #define NDEBUG
13 #include "debug.h"
14
15 /* GLOBALS *******************************************************************/
16
17 /* FUNCTIONS *****************************************************************/
18
19 VOID
20 NTAPI
21 CmpInitSecurityCache(IN PCMHIVE Hive)
22 {
23 ULONG i;
24
25 /* Reset data */
26 Hive->SecurityCount = 0;
27 Hive->SecurityCacheSize = 0;
28 Hive->SecurityHitHint = -1;
29 Hive->SecurityCache = NULL;
30
31 /* Loop every security hash */
32 for (i = 0; i < CMP_SECURITY_HASH_LISTS; i++)
33 {
34 /* Initialize it */
35 InitializeListHead(&Hive->SecurityHash[i]);
36 }
37 }