Lines Matching defs:pvPages
254 * @param pvPages The pages to initialize.
256 static void rtMemSaferInitializePages(PRTMEMSAFERNODE pThis, void *pvPages)
258 RTRandBytes(pvPages, PAGE_SIZE + pThis->offUser);
260 uint8_t *pbUser = (uint8_t *)pvPages + PAGE_SIZE + pThis->offUser;
281 void *pvPages;
282 int rc = SUPR3PageAllocEx(pThis->cPages, 0 /* fFlags */, &pvPages, NULL /* pR0Ptr */, NULL /* paPages */);
285 rtMemSaferInitializePages(pThis, pvPages);
300 rc = SUPR3PageProtect(pvPages, NIL_RTR0PTR, 0, PAGE_SIZE, RTMEM_PROT_NONE);
303 rc = SUPR3PageProtect(pvPages, NIL_RTR0PTR, (pThis->cPages - 1) * PAGE_SIZE, PAGE_SIZE, RTMEM_PROT_NONE);
306 SUPR3PageProtect(pvPages, NIL_RTR0PTR, 0, PAGE_SIZE, RTMEM_PROT_READ | RTMEM_PROT_WRITE);
312 int rc2 = SUPR3PageFreeEx(pvPages, pThis->cPages); AssertRC(rc2);
335 void *pvPages = RTMemPageAlloc((size_t)pThis->cPages * PAGE_SIZE);
336 if (pvPages)
338 rtMemSaferInitializePages(pThis, pvPages);
343 rc = RTMemProtect(pvPages, PAGE_SIZE, RTMEM_PROT_NONE);
346 rc = RTMemProtect((uint8_t *)pvPages + (size_t)(pThis->cPages - 1U) * PAGE_SIZE, PAGE_SIZE, RTMEM_PROT_NONE);
349 rc = RTMemProtect(pvPages, PAGE_SIZE, RTMEM_PROT_READ | RTMEM_PROT_WRITE);
353 RTMemPageFree(pvPages, (size_t)pThis->cPages * PAGE_SIZE);