// ntddk.h
NTSTATUS MmAddPhysicalMemory(
[in] PPHYSICAL_ADDRESS StartAddress,
[in] PLARGE_INTEGER NumberOfBytes
);
View the official Windows Driver Kit DDI referenceNo description available.
The MmAddPhysicalMemory function adds a range of physical memory to the system.
StartAddress [in]Supplies the starting physical address of the range to be added.
NumberOfBytes [in]Supplies the size, in bytes, of the memory range to be added.
Returns an NTSTATUS code.
Memory added by MmAddPhysicalMemory can be immediately used to satisfy memory allocations from arbitrary threads.