Changeset 55964 in vbox
- Timestamp:
- May 20, 2015 11:38:57 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r55871 r55964 2330 2330 2331 2331 /** 2332 * @copydoc FNPDMDRVPOWEROFF 2332 * Worker for the power off or destruct callback. 2333 * 2334 * @returns nothing. 2335 * @param pDrvIns The driver instance. 2333 2336 */ 2334 static DECLCALLBACK(void) drvvdPowerOff(PPDMDRVINS pDrvIns) 2335 { 2336 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 2337 static void drvvdPowerOffOrDestruct(PPDMDRVINS pDrvIns) 2338 { 2337 2339 PVBOXDISK pThis = PDMINS_2_DATA(pDrvIns, PVBOXDISK); 2338 2340 LogFlowFunc(("\n")); … … 2365 2367 } 2366 2368 drvvdFreeImages(pThis); 2369 } 2370 2371 /** 2372 * @copydoc FNPDMDRVPOWEROFF 2373 */ 2374 static DECLCALLBACK(void) drvvdPowerOff(PPDMDRVINS pDrvIns) 2375 { 2376 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 2377 drvvdPowerOffOrDestruct(pDrvIns); 2367 2378 } 2368 2379 … … 2471 2482 LogFlowFunc(("\n")); 2472 2483 2484 /* 2485 * Make sure the block cache and disks are closed when this driver is 2486 * destroyed. This method will get called without calling the power off 2487 * callback first when we reconfigure the driver chain after a snapshot. 2488 */ 2489 drvvdPowerOffOrDestruct(pDrvIns); 2473 2490 if (pThis->MergeLock != NIL_RTSEMRW) 2474 2491 {
Note:
See TracChangeset
for help on using the changeset viewer.