Changeset 100355 in vbox for trunk/include/iprt
- Timestamp:
- Jul 4, 2023 6:37:35 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/memobj.h
r98103 r100355 281 281 /** 282 282 * Allocates page aligned virtual kernel memory with contiguous physical backing 283 * below 4GB(default tag).283 * (default tag). 284 284 * 285 285 * The physical memory backing the allocation is fixed. … … 288 288 * @param pMemObj Where to store the ring-0 memory object handle. 289 289 * @param cb Number of bytes to allocate. This is rounded up to nearest page. 290 * @param PhysHighest The highest permitable address (inclusive). 291 * Pass NIL_RTHCPHYS if any address is acceptable. 290 292 * @param fExecutable Flag indicating whether it should be permitted to 291 293 * executed code in the memory object. The user must … … 293 295 * allocation to actually make it executable. 294 296 */ 295 #define RTR0MemObjAllocCont(pMemObj, cb, fExecutable) \296 RTR0MemObjAllocContTag((pMemObj), (cb), ( fExecutable), RTMEM_TAG)297 298 /** 299 * Allocates page aligned virtual kernel memory with contiguous physical backing300 * b elow 4GB(custom tag).297 #define RTR0MemObjAllocCont(pMemObj, cb, PhysHigest, fExecutable) \ 298 RTR0MemObjAllocContTag((pMemObj), (cb), (PhysHigest), (fExecutable), RTMEM_TAG) 299 300 /** 301 * Allocates page aligned virtual kernel memory with contiguous physical 302 * backing (custom tag). 301 303 * 302 304 * The physical memory backing the allocation is fixed. … … 305 307 * @param pMemObj Where to store the ring-0 memory object handle. 306 308 * @param cb Number of bytes to allocate. This is rounded up to nearest page. 309 * @param PhysHighest The highest permitable address (inclusive). 310 * Pass NIL_RTHCPHYS if any address is acceptable. 307 311 * @param fExecutable Flag indicating whether it should be permitted to 308 312 * executed code in the memory object. The user must … … 311 315 * @param pszTag Allocation tag used for statistics and such. 312 316 */ 313 RTR0DECL(int) RTR0MemObjAllocContTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag);317 RTR0DECL(int) RTR0MemObjAllocContTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, bool fExecutable, const char *pszTag); 314 318 315 319 /**
Note:
See TracChangeset
for help on using the changeset viewer.