Changeset 4765 in vbox for trunk/include/VBox/sup.h
- Timestamp:
- Sep 13, 2007 10:09:04 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/sup.h
r4755 r4765 369 369 370 370 /** 371 * Allocate zero-filled locked pages. 372 * 373 * Use this to allocate a number of pages rather than using RTMem*() and mess with 374 * alignment. The returned address is of course page aligned. Call SUPPageFreeLocked() 375 * to free the pages once done with them. 376 * 377 * @returns VBox status. 378 * @param cPages Number of pages to allocate. 379 * @param ppvPages Where to store the base pointer to the allocated pages. 380 */ 381 SUPR3DECL(int) SUPPageAllocLocked(size_t cPages, void **ppvPages); 382 383 /** 384 * Frees locked pages allocated with SUPPageAllocLocked(). 385 * 386 * @returns VBox status. 387 * @param pvPages Pointer returned by SUPPageAlloc(). 388 * @param cPages Number of pages that was allocated. 389 */ 390 SUPR3DECL(int) SUPPageFreeLocked(void *pvPages, size_t cPages); 391 392 /** 371 393 * Locks down the physical memory backing a virtual memory 372 394 * range in the current process.
Note:
See TracChangeset
for help on using the changeset viewer.