MmAllocatePagesForMdlEx
PMDL *__stdcall MmAllocatePagesForMdlEx(
PHYSICAL_ADDRESS LowAddress,
PHYSICAL_ADDRESS HighAddress,
PHYSICAL_ADDRESS SkipBytes,
_SIZE_T TotalBytes,
_MEMORY_CACHING_TYPE CacheType,
UINT32 Flags){
UINT64 IdealNode;
UINT64 v8;
LODWORD(v8) = Flags;
LODWORD(IdealNode) = (*(&KiProcessorBlock + KeGetCurrentThread()->IdealProcessor))->ParentNode->Affinity.Reserved[0];
return(PMDL *)MmAllocatePartitionNodePagesForMdlEx(
LowAddress,
HighAddress,
SkipBytes,
*(UINT64 *)&TotalBytes,
CacheType,
IdealNode,
v8,
0i64);
}Referenced by:
BgpFwAllocateMemory
EtwpAllocateTraceBuffer
HalpAllocateCommonBufferThin
IoReserveKsrPersistentMemory
PopGenerateMdl
PopGenerateScratchMdl
PpmHeteroInitializeHgsSupport
ResFwGetContext
SMKM_STORE::SmStAllocatePhysicalRegion