VirtualBox

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


Ignore:
Timestamp:
Sep 18, 2023 8:03:52 PM (15 months ago)
Author:
vboxsync
Message:

IPRT/mem: Use mempage /w heap code everwhere all the time. bugref:10370

File:
1 edited

Legend:

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

    r98103 r101162  
    8282#endif
    8383
     84#ifdef IN_RING3
     85
     86/**
     87 * Native allocation worker for the heap-based RTMemPage implementation.
     88 */
     89DECLHIDDEN(int) rtMemPageNativeAlloc(size_t cb, uint32_t fFlags, void **ppvRet);
     90
     91/**
     92 * Native allocation worker for the heap-based RTMemPage implementation.
     93 */
     94DECLHIDDEN(int) rtMemPageNativeFree(void *pv, size_t cb);
     95
     96/**
     97 * Native page allocator worker that applies advisory flags to the memory.
     98 *
     99 * @returns Set of flags succesfully applied
     100 * @param   pv      The memory block address.
     101 * @param   cb      The size of the memory block.
     102 * @param   fFlags  The flags to apply (may include other flags too, ignore).
     103 */
     104DECLHIDDEN(uint32_t) rtMemPageNativeApplyFlags(void *pv, size_t cb, uint32_t fFlags);
     105
     106/**
     107 * Reverts flags previously applied by rtMemPageNativeApplyFlags().
     108 *
     109 * @param   pv      The memory block address.
     110 * @param   cb      The size of the memory block.
     111 * @param   fFlags  The flags to revert.
     112 */
     113DECLHIDDEN(void) rtMemPageNativeRevertFlags(void *pv, size_t cb, uint32_t fFlags);
     114
     115#endif /* IN_RING3 */
     116
    84117RT_C_DECLS_END
    85118
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