53 BOOLEAN DSC_CmMemPurgeCache(
P_DsmCoreInst idp, U32BIT maxMemory )
66 pModule = (
P_Module)LLTail( idp->llcModulePriority );
68 while (pModule != NULL)
70 if (pModule->status == MS_CACHED && pModule->currentUseCount == 0)
74 pModule = LLPrev( pModule, MODULE_PRIORITY_LIST );
78 dsmDP1((
"ERROR: memMgr heap full\n"));
83 dsmAssert((pModule->loadedCount == 0));
86 dsmAssert((pModule->llcLoadRequests == NULL));
88 dsmDP2((
"INFO: ModuleId %u deleted to free cache space\n", pModule->moduleInfo.moduleId));
92 if (idp->cacheFull == FALSE)
94 dsmDP3((
"INFO: *** Cache full on current service ***\n"));
95 idp->cacheFull = TRUE;
96 if (idp->setup.progressFunc)
98 idp->setup.progressFunc( CLDSM_PROG_CURR_SERVICE_CACHE_FULL, NULL );
103 while (idp->cacheMemoryUsage > maxMemory);
General include file for clDsm library internal definitions.
Header to the loadMgr module.
Header to the linkList module - Functions/methods for managing linked lists of items created in manag...
Header to the cacheMgr module.
void DSC_ModuleDeleteDcTidyUp(P_DsmCoreInst idp, P_Module pModule)
Delete module and destroy parent DC if now empty.
Header to the 'module' module - Functions/methods for creating/destroying and managing attributes of ...