46 if (
cache && prev && *prev)
76 while (
ptr && *
ptr && (*ptr)->entry)
104 cache->cs.DebugInfo->Spare[0] = (
DWORD_PTR)(__FILE__
": NBNameCache.cs");
124 cache->entryExpireTimeMS;
126 (*node)->entry =
entry;
135 cache->entryExpireTimeMS;
138 cache->head = newNode;
166 ret = (*node)->entry;
180 cache->cs.DebugInfo->Spare[0] = 0;
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define HeapFree(x, y, z)
DWORD WINAPI GetTickCount(VOID)
#define memcpy(s1, s2, n)
struct _NBNameCacheNode NBNameCacheNode
BOOL NBNameCacheAddEntry(struct NBNameCache *cache, NBNameCacheEntry *entry)
void NBNameCacheDestroy(struct NBNameCache *cache)
static void NBNameCacheUnlinkNode(struct NBNameCache *cache, NBNameCacheNode **prev)
static NBNameCacheNode ** NBNameCacheWalk(struct NBNameCache *cache, const char name[NCBNAMSZ])
struct NBNameCache * NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS)
const NBNameCacheEntry * NBNameCacheFindEntry(struct NBNameCache *cache, const UCHAR name[NCBNAMSZ])
static unsigned __int64 next
struct _NBNameCacheNode * next
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)