VirtualBox

Changeset 28012 in vbox for trunk/include


Ignore:
Timestamp:
Apr 6, 2010 2:52:25 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59719
Message:

Use PGMR3QueryFreeMemory instead

Location:
trunk/include/VBox
Files:
3 edited

Legend:

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

    r27999 r28012  
    399399
    400400/**
    401  * Request buffer for GMMR0QueryTotalBalloonSizeReq / VMMR0_DO_GMM_BALLOONED_PAGES.
    402  * @see GMMR0QueryTotalBalloonSize.
    403  */
    404 typedef struct GMMBALLOONQUERY
     401 * Request buffer for GMMR0QueryTotalFreePagesReq / VMMR0_DO_GMM_QUERY_TOTAL_FREE_PAGES.
     402 * @see GMMR0QueryTotalFreePagesReq.
     403 */
     404typedef struct GMMFREEQUERYREQ
    405405{
    406406    /** The header. */
    407407    SUPVMMR0REQHDR      Hdr;
    408     /** The number of ballooned pages (out). */
    409     uint64_t            cBalloonedPages;
    410 } GMMBALLOONQUERYREQ;
    411 /** Pointer to a GMMR0QueryTotalBalloonSizeReq / VMMR0_DO_GMM_QUERY_TOTAL_BALLOON_SIZE request buffer. */
    412 typedef GMMBALLOONQUERYREQ *PGMMBALLOONQUERYREQ;
    413 
    414 GMMR0DECL(int)  GMMR0QueryTotalBalloonSizeReq(PVM pVM, PGMMBALLOONQUERYREQ pReq);
     408    /** The number of free pages (out). */
     409    uint64_t            cFreePages;
     410} GMMFREEQUERYREQ;
     411/** Pointer to a GMMR0QueryTotalFreePagesReq / VMMR0_DO_GMM_QUERY_TOTAL_FREE_PAGES request buffer. */
     412typedef GMMFREEQUERYREQ *PGMMFREEQUERYREQ;
     413
     414GMMR0DECL(int)  GMMR0QueryTotalFreePagesReq(PVM pVM, PGMMFREEQUERYREQ pReq);
    415415
    416416/**
     
    473473GMMR3DECL(int)  GMMR3SeedChunk(PVM pVM, RTR3PTR pvR3);
    474474GMMR3DECL(int)  GMMR3BalloonedPages(PVM pVM, GMMBALLOONACTION enmAction, uint32_t cBalloonedPages);
    475 GMMR3DECL(int)  GMMR3QueryTotalBalloonSize(PVM pVM, uint64_t *pcTotalBalloonedPages);
     475GMMR3DECL(int)  GMMR3QueryTotalFreePages(PVM pVM, uint64_t *pcTotalFreePages);
    476476/** @} */
    477477#endif /* IN_RING3 */
  • trunk/include/VBox/pgm.h

    r28003 r28012  
    467467VMMR3DECL(int)      PGMR3PhysRegisterRam(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, const char *pszDesc);
    468468VMMR3DECL(int)      PGMR3PhysChangeMemBalloon(PVM pVM, bool fInflate, unsigned cPages, RTGCPHYS *paPhysPage);
    469 VMMR3DECL(int)      PGMR3QueryBalloonSize(PVM pVM, unsigned *puVMBalloonSize, unsigned *puTotalBalloonSize);
     469VMMR3DECL(int)      PGMR3QueryFreeMemory(PVM pVM, unsigned *puTotalFreeSize);
    470470VMMR3DECL(int)      PGMR3PhysMMIORegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb,
    471471                                          R3PTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTR3PTR pvUserR3,
  • trunk/include/VBox/vmm.h

    r27999 r28012  
    300300    /** Call GMMR0FreeLargePage(). */
    301301    VMMR0_DO_GMM_FREE_LARGE_PAGE,
     302    /** Call GMMR0QueryTotalFreePagesReq */
     303    VMMR0_DO_GMM_QUERY_TOTAL_FREE_PAGES,
    302304    /** Call GMMR0BalloonedPages(). */
    303305    VMMR0_DO_GMM_BALLOONED_PAGES,
    304     /** Call GMMR0QueryTotalBalloonSize*/
    305     VMMR0_DO_GMM_QUERY_TOTAL_BALLOON_SIZE,
    306306    /** Call GMMR0MapUnmapChunk(). */
    307307    VMMR0_DO_GMM_MAP_UNMAP_CHUNK,
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