MCPcopy Create free account
hub / github.com/WinDurango/WinDurango / XMemFreeDefault

Function XMemFreeDefault

projects/WinDurango.KernelX/src/kernelx.cpp:621–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619 {
620 DWORD flAllocationType = MEM_COMMIT | MEM_RESERVE;
621
622 if (attr.s.dwPageSize == XALLOC_PAGESIZE_4MB)
623 flAllocationType |= MEM_4MB_PAGES;
624 else if (attr.s.dwPageSize == XALLOC_PAGESIZE_4KB)
625 flAllocationType |= MEM_LARGE_PAGES;
626
627 if (attr.s.dwMemoryType >= XALLOC_MEMTYPE_GRAPHICS_1 &&
628 attr.s.dwMemoryType <= XALLOC_MEMTYPE_GRAPHICS_6)
629 {
630 flAllocationType |= MEM_GRAPHICS;
631 }
632
633 return EraVirtualAlloc(nullptr, dwSize, flAllocationType, PAGE_READWRITE);

Callers

nothing calls this directly

Calls 1

EraVirtualFreeFunction · 0.85

Tested by

no test coverage detected