MmAddPhysicalMemory - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

NTSTATUS MmAddPhysicalMemory(
  [in] PPHYSICAL_ADDRESS StartAddress,
  [in] PLARGE_INTEGER    NumberOfBytes
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-wdm-mmaddphysicalmemory)

Description

The MmAddPhysicalMemory function adds a range of physical memory to the system.

Parameters

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.

Return value

Returns an NTSTATUS code.

Remarks

Memory added by MmAddPhysicalMemory can be immediately used to satisfy memory allocations from arbitrary threads.