Changeset 97905 in vbox for trunk/include
- Timestamp:
- Dec 29, 2022 6:22:23 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154995
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r97646 r97905 1866 1866 # define RTR0Init RT_MANGLER(RTR0Init) /* r0drv */ 1867 1867 # define RTR0MemAreKrnlAndUsrDifferent RT_MANGLER(RTR0MemAreKrnlAndUsrDifferent) /* r0drv */ 1868 # define RTR0MemExecDonate RT_MANGLER(RTR0MemExecDonate) /* r0drv */1869 1868 # define RTR0MemKernelIsValidAddr RT_MANGLER(RTR0MemKernelIsValidAddr) /* r0drv */ 1870 1869 # define RTR0MemObjAddress RT_MANGLER(RTR0MemObjAddress) /* r0drv */ -
trunk/include/iprt/mem.h
r96407 r97905 467 467 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 468 468 469 #if defined(IN_RING0) && defined(RT_ARCH_AMD64) && defined(RT_OS_LINUX)470 /**471 * Donate read+write+execute memory to the exec heap.472 *473 * This API is specific to AMD64 and Linux/GNU. A kernel module that desires to474 * use RTMemExecAlloc on AMD64 Linux/GNU will have to donate some statically475 * allocated memory in the module if it wishes for GCC generated code to work.476 * GCC can only generate modules that work in the address range ~2GB to ~0477 * currently.478 *479 * The API only accept one single donation.480 *481 * @returns IPRT status code.482 * @param pvMemory Pointer to the memory block.483 * @param cb The size of the memory block.484 */485 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW_PROTO;486 #endif /* R0+AMD64+LINUX */487 488 469 /** 489 470 * Allocate page aligned memory with default tag.
Note:
See TracChangeset
for help on using the changeset viewer.