VirtualBox

Changeset 54719 in vbox


Ignore:
Timestamp:
Mar 11, 2015 4:19:50 PM (10 years ago)
Author:
vboxsync
Message:

VMM: Make the thread-context hook functions VMM internal linkage.

Location:
trunk
Files:
2 edited

Legend:

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

    r54718 r54719  
    509509VMMR0_INT_DECL(bool) VMMR0IsLongJumpArmed(PVMCPU pVCpu);
    510510VMMR0_INT_DECL(bool) VMMR0IsInRing3LongJump(PVMCPU pVCpu);
    511 VMMR0DECL(int)       VMMR0ThreadCtxHooksCreate(PVMCPU pVCpu);
    512 VMMR0DECL(void)      VMMR0ThreadCtxHooksRelease(PVMCPU pVCpu);
    513 VMMR0DECL(bool)      VMMR0ThreadCtxHooksAreCreated(PVMCPU pVCpu);
    514 VMMR0DECL(int)       VMMR0ThreadCtxHooksRegister(PVMCPU pVCpu, PFNRTTHREADCTXHOOK pfnHook);
    515 VMMR0DECL(void)      VMMR0ThreadCtxHooksDeregister(PVMCPU pVCpu);
    516 VMMR0DECL(bool)      VMMR0ThreadCtxHooksAreRegistered(PVMCPU pVCpu);
     511VMMR0_INT_DECL(int)  VMMR0ThreadCtxHooksCreate(PVMCPU pVCpu);
     512VMMR0_INT_DECL(void) VMMR0ThreadCtxHooksRelease(PVMCPU pVCpu);
     513VMMR0_INT_DECL(bool) VMMR0ThreadCtxHooksAreCreated(PVMCPU pVCpu);
     514VMMR0_INT_DECL(int)  VMMR0ThreadCtxHooksRegister(PVMCPU pVCpu, PFNRTTHREADCTXHOOK pfnHook);
     515VMMR0_INT_DECL(void) VMMR0ThreadCtxHooksDeregister(PVMCPU pVCpu);
     516VMMR0_INT_DECL(bool) VMMR0ThreadCtxHooksAreRegistered(PVMCPU pVCpu);
    517517
    518518# ifdef LOG_ENABLED
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r54718 r54719  
    454454 * @thread  EMT(pVCpu)
    455455 */
    456 VMMR0DECL(int) VMMR0ThreadCtxHooksCreate(PVMCPU pVCpu)
     456VMMR0_INT_DECL(int) VMMR0ThreadCtxHooksCreate(PVMCPU pVCpu)
    457457{
    458458    VMCPU_ASSERT_EMT(pVCpu);
     
    478478 * @remarks Can be called from any thread.
    479479 */
    480 VMMR0DECL(void) VMMR0ThreadCtxHooksRelease(PVMCPU pVCpu)
     480VMMR0_INT_DECL(void) VMMR0ThreadCtxHooksRelease(PVMCPU pVCpu)
    481481{
    482482    RTThreadCtxHooksRelease(pVCpu->vmm.s.hR0ThreadCtx);
     
    493493 * @thread  EMT(pVCpu)
    494494 */
    495 VMMR0DECL(int) VMMR0ThreadCtxHooksRegister(PVMCPU pVCpu, PFNRTTHREADCTXHOOK pfnThreadHook)
     495VMMR0_INT_DECL(int) VMMR0ThreadCtxHooksRegister(PVMCPU pVCpu, PFNRTTHREADCTXHOOK pfnThreadHook)
    496496{
    497497    VMCPU_ASSERT_EMT(pVCpu);
     
    507507 * @thread  EMT(pVCpu)
    508508 */
    509 VMMR0DECL(void) VMMR0ThreadCtxHooksDeregister(PVMCPU pVCpu)
     509VMMR0_INT_DECL(void) VMMR0ThreadCtxHooksDeregister(PVMCPU pVCpu)
    510510{
    511511    /* Clear the VCPU <-> host CPU mapping as we've left HM context. See @bugref{7726} comment #19. */
     
    528528 * @param   pVCpu       Pointer to the VMCPU.
    529529 */
    530 VMMR0DECL(bool) VMMR0ThreadCtxHooksAreCreated(PVMCPU pVCpu)
     530VMMR0_INT_DECL(bool) VMMR0ThreadCtxHooksAreCreated(PVMCPU pVCpu)
    531531{
    532532    return pVCpu->vmm.s.hR0ThreadCtx != NIL_RTTHREADCTX;
     
    540540 * @param   pVCpu       Pointer to the VMCPU.
    541541 */
    542 VMMR0DECL(bool) VMMR0ThreadCtxHooksAreRegistered(PVMCPU pVCpu)
     542VMMR0_INT_DECL(bool) VMMR0ThreadCtxHooksAreRegistered(PVMCPU pVCpu)
    543543{
    544544    return RTThreadCtxHooksAreRegistered(pVCpu->vmm.s.hR0ThreadCtx);
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