VirtualBox

Changeset 34222 in vbox for trunk/src/VBox/VMM/PDMDriver.cpp


Ignore:
Timestamp:
Nov 21, 2010 10:10:56 PM (14 years ago)
Author:
vboxsync
Message:

PDMDriver: Helper to create a block cache for drivers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDriver.cpp

    r34219 r34222  
    13971397
    13981398
     1399/** @interface_method_impl{PDMDRVHLP,pfnBlkCacheRetain} */
     1400static DECLCALLBACK(int) pdmR3DrvHlp_BlkCacheRetain(PPDMDRVINS pDrvIns, PPPDMBLKCACHE ppBlkCache,
     1401                                                    PFNPDMBLKCACHEXFERCOMPLETEDRV pfnXferComplete,
     1402                                                    PFNPDMBLKCACHEXFERENQUEUEDRV pfnXferEnqueue,
     1403                                                    const char *pcszId)
     1404{
     1405    PDMDRV_ASSERT_DRVINS(pDrvIns);
     1406    return PDMR3BlkCacheRetainDriver(pDrvIns->Internal.s.pVMR3, pDrvIns, ppBlkCache,
     1407                                     pfnXferComplete, pfnXferEnqueue, pcszId);
     1408}
     1409
     1410
    13991411/**
    14001412 * The driver helper structure.
     
    14391451    pdmR3DrvHlp_CallR0,
    14401452    pdmR3DrvHlp_FTSetCheckpoint,
     1453    pdmR3DrvHlp_BlkCacheRetain,
    14411454    PDM_DRVHLPR3_VERSION /* u32TheEnd */
    14421455};
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette