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

Function AllocPhysicalMemorySpecifyCache

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

Source from the content-addressed store, hash-verified

334
335 _IRQL_requires_max_(DISPATCH_LEVEL)
336 PVOID AllocPhysicalMemorySpecifyCache(
337 PVOID64 LowestAcceptableAddress,
338 PVOID64 HighestAcceptableAddress,
339 PVOID64 BoundaryAddressMultiple,
340 SIZE_T Size,
341 MEMORY_CACHING_TYPE CachingType
342 ) {
343 return MmAllocateContiguousMemorySpecifyCache(
344 Size,
345 *reinterpret_cast<PHYSICAL_ADDRESS*>(&LowestAcceptableAddress),
346 *reinterpret_cast<PHYSICAL_ADDRESS*>(&HighestAcceptableAddress),
347 *reinterpret_cast<PHYSICAL_ADDRESS*>(&BoundaryAddressMultiple),
348 CachingType
349 );
350 }
351
352 _IRQL_requires_max_(DISPATCH_LEVEL)
353 VOID FreePhysicalMemory(PVOID BaseVirtualAddress) {

Callers 2

AllocPhysFunction · 0.85
KbAllocPhysicalMemoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected