MmAddPhysicalMemory 函数 (ntddk.h)

MmAddPhysicalMemory 函数向系统添加一系列物理内存。

语法

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

参数

[in] StartAddress

提供要添加的范围的起始物理地址。

[in] NumberOfBytes

提供要添加的内存范围的大小(以字节为单位)。

返回值

返回 NTSTATUS 代码。

言论

MmAddPhysicalMemory 添加的内存可以立即用于满足任意线程的内存分配。

要求

要求 价值
标头 ntddk.h
IRQL <= APC_LEVEL
DDI 符合性规则 HwStorPortProhibitedDIS(storport)PowerIrpDDis(wdm)