VirtualBox

Changeset 91446 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Sep 28, 2021 7:53:25 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/memobj: Adding RTR0MemObjAllocLarge for speeding up large page allocations. bugref:5324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/memobj.h

    r82968 r91446  
    306306
    307307/**
     308 * Worker for RTR0MemObjAllocLargeTag.
     309 *
     310 * @returns IPRT status code.
     311 * @param   ppMem           Where to store the ring-0 memory object handle.
     312 * @param   cb              Number of bytes to allocate, aligned to @a
     313 *                          cbLargePage.
     314 * @param   cbLargePage     The large page size.
     315 * @param   fFlags          RTMEMOBJ_ALLOC_LARGE_F_XXX, validated.
     316 * @param   pszTag          The allocation tag.
     317 */
     318DECLHIDDEN(int) rtR0MemObjNativeAllocLarge(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, size_t cbLargePage, uint32_t fFlags,
     319                                           const char *pszTag);
     320
     321/**
    308322 * Allocates page aligned virtual kernel memory with physical backing below 4GB.
    309323 *
     
    485499DECLHIDDEN(PRTR0MEMOBJINTERNAL) rtR0MemObjNew(size_t cbSelf, RTR0MEMOBJTYPE enmType, void *pv, size_t cb);
    486500DECLHIDDEN(void) rtR0MemObjDelete(PRTR0MEMOBJINTERNAL pMem);
     501DECLHIDDEN(int) rtR0MemObjFallbackAllocLarge(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, size_t cbLargePage, uint32_t fFlags,
     502                                             const char *pszTag);
    487503
    488504/** @} */
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