Lines Matching defs:pMachine
212 * @param pMachine Machine to determine ballooning for.
214 static bool balloonIsRequired(PVBOXWATCHDOG_MACHINE pMachine)
216 AssertPtrReturn(pMachine, false);
220 payloadFrom(pMachine, VBOX_MOD_BALLOONING_NAME);
222 pData->ulBalloonSizeMax = pMachine->machine.isNull()
223 ? 0 : balloonGetMaxSize(pMachine->machine);
236 PVBOXWATCHDOG_MACHINE pMachine = getMachine(strUuid);
237 AssertPtrBreakStmt(pMachine, vrc=VERR_INVALID_PARAMETER);
239 ComPtr<IMachine> m = pMachine->machine;
260 ComPtr<IPerformanceCollector> coll = pMachine->collector;
283 * @param pMachine Pointer to the machine's internal structure.
285 static int balloonMachineUpdate(const Bstr &strUuid, PVBOXWATCHDOG_MACHINE pMachine)
287 AssertPtrReturn(pMachine, VERR_INVALID_POINTER);
293 int vrc = getMetric(pMachine, L"Guest/RAM/Usage/Free", &lMemFree);
295 vrc = getMetric(pMachine, L"Guest/RAM/Usage/Balloon", &lBalloonCur);
313 payloadFrom(pMachine, VBOX_MOD_BALLOONING_NAME);
335 CHECK_ERROR(pMachine->machine, LockMachine(g_pSession, LockType_Shared));
509 PVBOXWATCHDOG_MACHINE pMachine = getMachine(strUuid);
510 AssertPtrReturn(pMachine, VERR_INVALID_PARAMETER);
513 int rc = payloadAlloc(pMachine, VBOX_MOD_BALLOONING_NAME,
516 rc = balloonMachineUpdate(strUuid, pMachine);
523 PVBOXWATCHDOG_MACHINE pMachine = getMachine(strUuid);
524 AssertPtrReturn(pMachine, VERR_INVALID_PARAMETER);
526 payloadFree(pMachine, VBOX_MOD_BALLOONING_NAME);
534 PVBOXWATCHDOG_MACHINE pMachine = getMachine(strUuid);
536 * so pMachine might be NULL here. */
537 if (!pMachine)
540 return balloonMachineUpdate(strUuid, pMachine);