Changeset 44386 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jan 25, 2013 6:18:12 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r44340 r44386 94 94 * @param pvUser The user argument passed to pfnCFGMConstructor. 95 95 * @thread EMT. 96 * @internal 96 97 */ 97 98 VMMR3DECL(int) CFGMR3Init(PVM pVM, PFNCFGMCONSTRUCTOR pfnCFGMConstructor, void *pvUser) … … 144 145 * @returns VBox status code. 145 146 * @param pVM Pointer to the VM. 147 * @internal 146 148 */ 147 149 VMMR3DECL(int) CFGMR3Term(PVM pVM) … … 838 840 * @returns VBox status code. 839 841 * @param pVM Pointer to the VM. 842 * @internal 840 843 */ 841 844 VMMR3DECL(int) CFGMR3ConstructDefaultTree(PVM pVM) … … 1197 1200 * correct location. 1198 1201 * 1199 * @returns Pointer to the root node. 1200 * @param pVM Pointer to the VM. 1201 */ 1202 VMMR3DECL(PCFGMNODE) CFGMR3CreateTree(PVM pVM) 1203 { 1204 PCFGMNODE pNew = (PCFGMNODE)MMR3HeapAlloc(pVM, MM_TAG_CFGM, sizeof(*pNew)); 1202 * @returns Pointer to the root node, NULL on error (out of memory or invalid 1203 * VM handle). 1204 * @param pUVM The user mode VM handle. 1205 */ 1206 VMMR3DECL(PCFGMNODE) CFGMR3CreateTree(PUVM pUVM) 1207 { 1208 UVM_ASSERT_VALID_EXT_RETURN(pUVM, NULL); 1209 VM_ASSERT_VALID_EXT_RETURN(pUVM->pVM, NULL); 1210 1211 PCFGMNODE pNew = (PCFGMNODE)MMR3HeapAllocU(pUVM, MM_TAG_CFGM, sizeof(*pNew)); 1205 1212 if (pNew) 1206 1213 { … … 1210 1217 pNew->pFirstChild = NULL; 1211 1218 pNew->pFirstLeaf = NULL; 1212 pNew->pVM = p VM;1219 pNew->pVM = pUVM->pVM; 1213 1220 pNew->fRestrictedRoot = false; 1214 1221 pNew->cchName = 0; … … 1234 1241 * Create a new tree. 1235 1242 */ 1236 PCFGMNODE pNewRoot = CFGMR3CreateTree(pRoot->pVM );1243 PCFGMNODE pNewRoot = CFGMR3CreateTree(pRoot->pVM->pUVM); 1237 1244 if (!pNewRoot) 1238 1245 return VERR_NO_MEMORY; -
trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp
r44358 r44386 898 898 * Create the CFGM configuration node. 899 899 */ 900 PCFGMNODE pConfig = CFGMR3CreateTree(p VM);900 PCFGMNODE pConfig = CFGMR3CreateTree(pUVM); 901 901 AssertReturn(pConfig, VERR_NO_MEMORY); 902 902 do /* break loop */
Note:
See TracChangeset
for help on using the changeset viewer.