Changeset 31158 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Jul 28, 2010 3:24:30 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64136
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/alloc-win.cpp
r28800 r31158 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - Memory Allocation, Win 32.3 * IPRT - Memory Allocation, Windows. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2010 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 43 43 44 44 45 /** 46 * Allocates memory which may contain code. 47 * 48 * @returns Pointer to the allocated memory. 49 * @returns NULL on failure. 50 * @param cb Size in bytes of the memory block to allocate. 51 */ 52 RTDECL(void *) RTMemExecAlloc(size_t cb) RT_NO_THROW 45 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 53 46 { 54 47 /* … … 83 76 84 77 85 /**86 * Free executable/read/write memory allocated by RTMemExecAlloc().87 *88 * @param pv Pointer to memory block.89 */90 78 RTDECL(void) RTMemExecFree(void *pv) RT_NO_THROW 91 79 { … … 95 83 96 84 97 /** 98 * Allocate page aligned memory. 99 * 100 * @returns Pointer to the allocated memory. 101 * @returns NULL if we're out of memory. 102 * @param cb Size of the memory block. Will be rounded up to page size. 103 */ 104 RTDECL(void *) RTMemPageAlloc(size_t cb) RT_NO_THROW 85 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 105 86 { 106 87 #ifdef USE_VIRTUAL_ALLOC … … 114 95 115 96 116 /** 117 * Allocate zero'ed page aligned memory. 118 * 119 * @returns Pointer to the allocated memory. 120 * @returns NULL if we're out of memory. 121 * @param cb Size of the memory block. Will be rounded up to page size. 122 */ 123 RTDECL(void *) RTMemPageAllocZ(size_t cb) RT_NO_THROW 97 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 124 98 { 125 99 #ifdef USE_VIRTUAL_ALLOC … … 138 112 139 113 140 /**141 * Free a memory block allocated with RTMemPageAlloc() or RTMemPageAllocZ().142 *143 * @param pv Pointer to the block as it was returned by the allocation function.144 * NULL will be ignored.145 */146 114 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW 147 115 { … … 158 126 159 127 160 /**161 * Change the page level protection of a memory region.162 *163 * @returns iprt status code.164 * @param pv Start of the region. Will be rounded down to nearest page boundary.165 * @param cb Size of the region. Will be rounded up to the nearest page boundary.166 * @param fProtect The new protection, a combination of the RTMEM_PROT_* defines.167 */168 128 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW 169 129 {
Note:
See TracChangeset
for help on using the changeset viewer.