VirtualBox

Changeset 4765 in vbox for trunk/include/VBox/sup.h


Ignore:
Timestamp:
Sep 13, 2007 10:09:04 AM (17 years ago)
Author:
vboxsync
Message:

Added SUPPageFreeLocked & SUPPageAllocLocked

File:
1 edited

Legend:

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

    r4755 r4765  
    369369
    370370/**
     371 * Allocate zero-filled locked pages.
     372 *
     373 * Use this to allocate a number of pages rather than using RTMem*() and mess with
     374 * alignment. The returned address is of course page aligned. Call SUPPageFreeLocked()
     375 * to free the pages once done with them.
     376 *
     377 * @returns VBox status.
     378 * @param   cPages      Number of pages to allocate.
     379 * @param   ppvPages    Where to store the base pointer to the allocated pages.
     380 */
     381SUPR3DECL(int) SUPPageAllocLocked(size_t cPages, void **ppvPages);
     382
     383/**
     384 * Frees locked pages allocated with SUPPageAllocLocked().
     385 *
     386 * @returns VBox status.
     387 * @param   pvPages     Pointer returned by SUPPageAlloc().
     388 * @param   cPages      Number of pages that was allocated.
     389 */
     390SUPR3DECL(int) SUPPageFreeLocked(void *pvPages, size_t cPages);
     391
     392/**
    371393 * Locks down the physical memory backing a virtual memory
    372394 * range in the current process.
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