MmAddPhysicalMemory function (ntddk.h)

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

Syntax

NTSTATUS MmAddPhysicalMemory(
  [in] PPHYSICAL_ADDRESS StartAddress,
  [in] PLARGE_INTEGER    NumberOfBytes
);

Parameters

[in] StartAddress

Supplies the starting physical address of the range to be added.

[in] NumberOfBytes

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.

Requirements

Requirement Value
Header ntddk.h
IRQL <= APC_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport), PowerIrpDDis(wdm)