VirtualBox

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


Ignore:
Timestamp:
Apr 1, 2009 8:16:14 PM (16 years ago)
Author:
vboxsync
Message:

PDMDRVHLP::pfnPDMPollerRegister: No longer supported.

File:
1 edited

Legend:

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

    r14070 r18614  
    829829{
    830830    PDMDRV_ASSERT_DRVINS(pDrvIns);
    831     LogFlow(("pdmR3DrvHlp_PDMPollerRegister: caller='%s'/%d: pfnPoller=%p\n",
    832              pDrvIns->pDrvReg->szDriverName, pDrvIns->iInstance, pfnPoller));
    833     VM_ASSERT_EMT(pDrvIns->Internal.s.pVM);
    834 
    835     int rc = VINF_SUCCESS;
    836     PVM pVM = pDrvIns->Internal.s.pVM;
    837     if (pVM->pdm.s.cPollers < RT_ELEMENTS(pVM->pdm.s.apfnPollers))
    838     {
    839         pVM->pdm.s.apfnPollers[pVM->pdm.s.cPollers] = pfnPoller;
    840         pVM->pdm.s.aDrvInsPollers[pVM->pdm.s.cPollers] = pDrvIns;
    841         pVM->pdm.s.cPollers++;
    842         if (pVM->pdm.s.cPollers == 1)
    843             TMTimerSetMillies(pVM->pdm.s.pTimerPollers, 5);
    844     }
    845     else
    846     {
    847         AssertMsgFailed(("Too many pollers!\n"));
    848         rc = VERR_INTERNAL_ERROR;
    849     }
    850 
    851     LogFlow(("pdmR3DrvHlp_PDMPollerRegister: caller='%s'/%d: returns %Rrc\n", pDrvIns->pDrvReg->szDriverName, pDrvIns->iInstance, rc));
    852     return rc;
     831    AssertLogRelMsgFailedReturn(("pdmR3DrvHlp_PDMPollerRegister: caller='%s'/%d: pfnPoller=%p -> VERR_NOT_SUPPORTED\n", pDrvIns->pDrvReg->szDriverName, pDrvIns->iInstance, pfnPoller),
     832                                VERR_NOT_SUPPORTED);
    853833}
    854834
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