Changeset 31158 in vbox for trunk/src/VBox/Runtime/r3/solaris
- 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/solaris/alloc-solaris.cpp
r29277 r31158 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - Memory Allocation, POSIX.3 * IPRT - Memory Allocation, Solaris. 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 … … 49 49 50 50 51 /** 52 * Allocates memory which may contain code. 53 * 54 * @returns Pointer to the allocated memory. 55 * @returns NULL on failure. 56 * @param cb Size in bytes of the memory block to allocate. 57 */ 58 RTDECL(void *) RTMemExecAlloc(size_t cb) RT_NO_THROW 51 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 59 52 { 60 53 /* … … 89 82 90 83 91 /**92 * Free executable/read/write memory allocated by RTMemExecAlloc().93 *94 * @param pv Pointer to memory block.95 */96 84 RTDECL(void) RTMemExecFree(void *pv) RT_NO_THROW 97 85 { … … 101 89 102 90 103 /** 104 * Allocate page aligned memory. 105 * 106 * @returns Pointer to the allocated memory. 107 * @returns NULL if we're out of memory. 108 * @param cb Size of the memory block. Will be rounded up to page size. 109 */ 110 RTDECL(void *) RTMemPageAlloc(size_t cb) RT_NO_THROW 91 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 111 92 { 112 93 #ifdef RT_USE_MMAP_PAGE … … 122 103 123 104 124 /** 125 * Allocate zero'ed page aligned memory. 126 * 127 * @returns Pointer to the allocated memory. 128 * @returns NULL if we're out of memory. 129 * @param cb Size of the memory block. Will be rounded up to page size. 130 */ 131 RTDECL(void *) RTMemPageAllocZ(size_t cb) RT_NO_THROW 105 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 132 106 { 133 107 #ifdef RT_USE_MMAP_PAGE … … 147 121 148 122 149 /**150 * Free a memory block allocated with RTMemPageAlloc() or RTMemPageAllocZ().151 *152 * @param pv Pointer to the block as it was returned by the allocation function.153 * NULL will be ignored.154 */155 123 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW 156 124 { … … 168 136 169 137 170 /**171 * Change the page level protection of a memory region.172 *173 * @returns iprt status code.174 * @param pv Start of the region. Will be rounded down to nearest page boundary.175 * @param cb Size of the region. Will be rounded up to the nearest page boundary.176 * @param fProtect The new protection, a combination of the RTMEM_PROT_* defines.177 */178 138 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW 179 139 {
Note:
See TracChangeset
for help on using the changeset viewer.