VirtualBox

Changeset 6581 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 29, 2008 11:53:36 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27635
Message:

Added some ring-3 wrapper functions for the (ring-0) GMM APIs.

File:
1 edited

Legend:

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

    r5999 r6581  
    4949#else
    5050# define GMMR0DECL(type)    DECLIMPORT(type) VBOXCALL
     51#endif
     52
     53/** @def IN_GMM_R3
     54 * Used to indicate whether we're inside the same link module as the ring 3
     55 * part of the Global Memory Manager or not.
     56 */
     57/** @def GMMR3DECL
     58 * Ring 3 GMM export or import declaration.
     59 * @param   type    The return type of the function declaration.
     60 */
     61#ifdef IN_GMM_R3
     62# define GMMR3DECL(type)    DECLEXPORT(type) VBOXCALL
     63#else
     64# define GMMR3DECL(type)    DECLIMPORT(type) VBOXCALL
    5165#endif
    5266
     
    236250
    237251
     252GMMR3DECL(int)  GMMR3InitialReservation(PVM pVM, uint64_t cBasePages, uint32_t cShadowPages, uint32_t cFixedPages,
     253                                        GMMOCPOLICY enmPolicy, GMMPRIORITY enmPriority);
     254GMMR3DECL(int)  GMMR3UpdateReservation(PVM pVM, uint64_t cBasePages, uint32_t cShadowPages, uint32_t cFixedPages);
     255GMMR3DECL(int)  GMMR3DeflatedBalloon(PVM pVM, uint32_t cPages);
     256GMMR3DECL(int)  GMMR3MapUnmapChunk(PVM pVM, uint32_t idChunkMap, uint32_t idChunkUnmap, PRTR3PTR ppvR3);
     257GMMR3DECL(int)  GMMR3SeedChunk(PVM pVM, RTR3PTR pvR3);
     258
     259
     260
    238261/**
    239262 * Request buffer for GMMR0InitialReservationReq / VMMR0_DO_GMM_INITIAL_RESERVATION.
Note: See TracChangeset for help on using the changeset viewer.

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