VirtualBox

Changeset 28318 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 14, 2010 6:09:10 PM (15 years ago)
Author:
vboxsync
Message:

RTMemPageFree + all users: Added size parameter to RTMemPageFree so we can avoid tracking structures when using mmap/munmap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mem.h

    r28303 r28318  
    228228 * @param   pv      Pointer to the block as it was returned by the allocation function.
    229229 *                  NULL will be ignored.
    230  */
    231 RTDECL(void) RTMemPageFree(void *pv) RT_NO_THROW;
     230 * @param   cb      The allocation size.  Will be rounded up to page size.
     231 *                  Ignored if @a pv is NULL.
     232 */
     233RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW;
    232234
    233235/** Page level protection flags for RTMemProtect().
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