VirtualBox

Changeset 28327 in vbox


Ignore:
Timestamp:
Apr 14, 2010 8:46:02 PM (15 years ago)
Author:
vboxsync
Message:

Added PDMDrvHlpGetSupDrvSession.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmdrv.h

    r28258 r28327  
    854854
    855855    /**
     856     * Gets the support driver session.
     857     *
     858     * This is intended for working using the semaphore API.
     859     *
     860     * @returns Support driver session handle.
     861     * @param   pDrvIns         The driver instance.
     862     */
     863    DECLR3CALLBACKMEMBER(PSUPDRVSESSION, pfnGetSupDrvSession,(PPDMDRVINS pDrvIns));
     864
     865    /**
    856866     * Create a queue.
    857867     *
     
    12961306
    12971307/**
     1308 * @copydoc PDMDRVHLP::pfnGetSupDrvSession
     1309 */
     1310DECLINLINE(bool) PDMDrvHlpGetSupDrvSession(PPDMDRVINS pDrvIns)
     1311{
     1312    return pDrvIns->pHlpR3->pfnGetSupDrvSession(pDrvIns);
     1313}
     1314
     1315/**
    12981316 * @copydoc PDMDRVHLP::pfnQueueCreate
    12991317 */
     
    14841502 */
    14851503DECLINLINE(int) PDMDrvHlpThreadCreate(PPDMDRVINS pDrvIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADDRV pfnThread,
    1486                                          PFNPDMTHREADWAKEUPDRV pfnWakeup, size_t cbStack, RTTHREADTYPE enmType, const char *pszName)
     1504                                      PFNPDMTHREADWAKEUPDRV pfnWakeup, size_t cbStack, RTTHREADTYPE enmType, const char *pszName)
    14871505{
    14881506    return pDrvIns->pHlpR3->pfnThreadCreate(pDrvIns, ppThread, pvUser, pfnThread, pfnWakeup, cbStack, enmType, pszName);
  • trunk/src/VBox/VMM/PDMDriver.cpp

    r28258 r28327  
    929929
    930930
     931/** @interface_method_impl{PDMDEVHLPR3,pfnGetSupDrvSession} */
     932static DECLCALLBACK(PSUPDRVSESSION) pdmR3DrvHlp_GetSupDrvSession(PPDMDRVINS pDrvIns)
     933{
     934    PDMDRV_ASSERT_DRVINS(pDrvIns);
     935
     936    PSUPDRVSESSION pSession = pDrvIns->Internal.s.pVMR3->pSession;
     937    LogFlow(("pdmR3DrvHlp_GetSupDrvSession: caller='%s'/%d: returns %p)\n", pDrvIns->pReg->szName, pDrvIns->iInstance,
     938             pSession));
     939    return pSession;
     940}
     941
     942
    931943/** @interface_method_impl{PDMDRVHLP,pfnQueueCreate} */
    932944static DECLCALLBACK(int) pdmR3DrvHlp_QueueCreate(PPDMDRVINS pDrvIns, uint32_t cbItem, uint32_t cItems, uint32_t cMilliesInterval,
     
    13111323    pdmR3DrvHlp_VMState,
    13121324    pdmR3DrvHlp_VMTeleportedAndNotFullyResumedYet,
     1325    pdmR3DrvHlp_GetSupDrvSession,
    13131326    pdmR3DrvHlp_QueueCreate,
    13141327    pdmR3DrvHlp_TMGetVirtualFreq,
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