MmPageEntireDriver 函数 (wdm.h)

MmPageEntireDriver 例程会导致所有驱动程序的代码和数据都可分页,重写构成驱动程序映像的各个部分的属性。

语法

PVOID MmPageEntireDriver(
  [in] PVOID AddressWithinSection
);

参数

[in] AddressWithinSection

指向驱动程序中的虚拟地址的指针(例如,DriverEntry 例程的地址)。

返回值

MmPageEntireDriver 返回指向内存中驱动程序映像开头的指针。

言论

使用此例程强制驱动程序完全可分页。 调用 MmPageEntireDriver 的驱动程序不得为任何中断注册 InterruptService 例程(ISR)。 如果在向驱动程序分页时发生中断,系统将发出 bug 检查。

调用 MmPageEntireDriver 的效果可以通过调用 MmResetDriverPaging撤消。

如果驱动程序已完全可分页,则调用 MmPageEntireDriver 不起作用。 有关分页整个驱动程序的详细信息,请参阅 使驱动程序可分页

要求

要求 价值
最低支持的客户端 从 Windows 2000 开始可用。
目标平台 普遍
标头 wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h)
NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL
DDI 符合性规则 HwStorPortProhibitedDIs(storport)IrqlMmApcLte(wdm)

另请参阅

mmLockPagableCodeSection

mmLockPagableDataSection

mmLockPagableSectionByHandle

mmResetDriverPaging

mmUnlockPagableImageSection