MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / AllocPhysicalMemory

Function AllocPhysicalMemory

Kernel-Bridge/API/MemoryUtils.cpp:328–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326
327 _IRQL_requires_max_(DISPATCH_LEVEL)
328 PVOID AllocPhysicalMemory(PVOID64 HighestAcceptableAddress, SIZE_T Size) {
329 return MmAllocateContiguousMemory(
330 Size,
331 *reinterpret_cast<PHYSICAL_ADDRESS*>(&HighestAcceptableAddress)
332 );
333 }
334
335 _IRQL_requires_max_(DISPATCH_LEVEL)
336 PVOID AllocPhysicalMemorySpecifyCache(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected