Lines Matching refs:g_apSharedModules
47 static PGMMREGISTERSHAREDMODULEREQ g_apSharedModules[512] = {0};
110 && g_cSharedModules < RT_ELEMENTS(g_apSharedModules))
113 for (i = 0; i < RT_ELEMENTS(g_apSharedModules); i++)
114 if (g_apSharedModules[i] == NULL)
118 g_apSharedModules[i] = (PGMMREGISTERSHAREDMODULEREQ)RTMemDup(pReq, cbSharedModule);
122 Assert(i < RT_ELEMENTS(g_apSharedModules));
179 if ( g_apSharedModules[i]
180 && !strcmp(g_apSharedModules[i]->szName, pszModuleName)
181 && !strcmp(g_apSharedModules[i]->szVersion, pszVersion))
183 RTMemFree(g_apSharedModules[i]);
184 g_apSharedModules[i] = NULL;
418 for (unsigned i = 0; i < RT_ELEMENTS(g_apSharedModules); i++)
420 if (g_apSharedModules[i])
422 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Shared module %s (%s):\n", g_apSharedModules[i]->szName, g_apSharedModules[i]->szVersion);
423 for (unsigned j = 0; j < g_apSharedModules[i]->cRegions; j++)
424 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "--- Region %d: base %RGv size %x\n", j, g_apSharedModules[i]->aRegions[j].GCRegionAddr, g_apSharedModules[i]->aRegions[j].cbRegion);