VirtualBox

Ignore:
Timestamp:
Jun 29, 2021 12:18:45 PM (3 years ago)
Author:
vboxsync
Message:

VMM/PDMDriver: Add PDMDRVHLPR3::pfnQueryGenericUserObject/PDMDevHlpQueryGenericUserObject mapping to VMM2USERMETHODS::pfnQueryGenericObject, bugref:10053

File:
1 edited

Legend:

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

    r88811 r89949  
    18761876
    18771877
     1878/** @interface_method_impl{PDMDRVHLPR3,pfnQueryGenericUserObject} */
     1879static DECLCALLBACK(void *) pdmR3DrvHlp_QueryGenericUserObject(PPDMDRVINS pDrvIns, PCRTUUID pUuid)
     1880{
     1881    PDMDRV_ASSERT_DRVINS(pDrvIns);
     1882    LogFlow(("pdmR3DrvHlp_QueryGenericUserObject: caller='%s'/%d: pUuid=%p:%RTuuid\n",
     1883             pDrvIns->pReg->szName, pDrvIns->iInstance, pUuid, pUuid));
     1884
     1885    void *pvRet;
     1886    PUVM  pUVM = pDrvIns->Internal.s.pVMR3->pUVM;
     1887    if (pUVM->pVmm2UserMethods->pfnQueryGenericObject)
     1888        pvRet = pUVM->pVmm2UserMethods->pfnQueryGenericObject(pUVM->pVmm2UserMethods, pUVM, pUuid);
     1889    else
     1890        pvRet = NULL;
     1891
     1892    LogRel(("pdmR3DrvHlp_QueryGenericUserObject: caller='%s'/%d: returns %#p for %RTuuid\n",
     1893            pDrvIns->pReg->szName, pDrvIns->iInstance, pvRet, pUuid));
     1894    return pvRet;
     1895}
     1896
     1897
    18781898/**
    18791899 * The driver helper structure.
     
    19271947    pdmR3DrvHlp_TimerSetMillies,
    19281948    pdmR3DrvHlp_STAMDeregisterByPrefix,
    1929     NULL,
     1949    pdmR3DrvHlp_QueryGenericUserObject,
    19301950    NULL,
    19311951    NULL,
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