Searched defs:cbMmap (Results 1 - 1 of 1) sorted by relevance
/vbox/src/VBox/HostDrivers/Support/linux/ |
H A D | SUPLib-linux.cpp | 218 size_t cbMmap = (pThis->fSysMadviseWorks ? cPages : cPages + 2) << PAGE_SHIFT; local 219 char *pvPages = (char *)mmap(NULL, cbMmap, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 231 if (madvise (pvPages, cbMmap, MADV_DONTFORK)) 232 LogRel(("SUPLib: madvise %p-%p failed\n", pvPages, cbMmap)); 243 mprotect(pvPages + cbMmap - PAGE_SIZE, PAGE_SIZE, PROT_NONE);
|
Completed in 41 milliseconds