VirtualBox

Changeset 20866 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jun 23, 2009 7:33:23 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49011
Message:

SUP: Removed two obsolete allocation APIs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r20864 r20866  
    968968
    969969
    970 SUPR3DECL(int) SUPR3PageAllocLockedEx(size_t cPages, void **ppvPages, PSUPPAGE paPages)
    971 {
    972     return SUPR3PageAllocEx(cPages, 0 /*fFlags*/, ppvPages, NULL /*pR0Ptr*/, paPages);
    973 }
    974 
    975 
    976 SUPR3DECL(int) SUPR3PageFreeLocked(void *pvPages, size_t cPages)
    977 {
    978     /*
    979      * Validate.
    980      */
    981     AssertPtrReturn(pvPages, VERR_INVALID_POINTER);
    982     AssertReturn(cPages > 0, VERR_PAGE_COUNT_OUT_OF_RANGE);
    983 
    984     /*
    985      * Check if we're employing the fallback or not to avoid the
    986      * fuzzy handling of this in SUPR3PageFreeEx.
    987      */
    988     int rc;
    989     if (g_fSupportsPageAllocNoKernel)
    990         rc = SUPR3PageFreeEx(pvPages, cPages);
    991     else
    992     {
    993         /* fallback */
    994         rc = supR3PageUnlock(pvPages);
    995         if (RT_SUCCESS(rc))
    996             rc = suplibOsPageFree(&g_supLibData, pvPages, cPages);
    997     }
    998     return rc;
    999 }
    1000 
    1001 
    1002970/**
    1003  * Fallback for SUPR3PageAllocLockedEx on systems where RTR0MemObjPhysAllocNC
    1004  * isn't supported.
     971 * Fallback for SUPR3PageAllocEx on systems where RTR0MemObjPhysAllocNC isn't
     972 * supported.
    1005973 */
    1006974static int supPagePageAllocNoKernelFallback(size_t cPages, void **ppvPages, PSUPPAGE paPages)
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