MmPageEntireDriver - NtDoc

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

PVOID MmPageEntireDriver(
  [in] PVOID AddressWithinSection
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-mmpageentiredriver)

MmPageEntireDriver function

Description

The MmPageEntireDriver routine causes all of a driver's code and data to be made pageable, overriding the attributes of the various sections that make up the driver's image.

Parameters

AddressWithinSection [in]

Pointer to a virtual address within the driver (for example, the address of the DriverEntry routine).

Return value

MmPageEntireDriver returns a pointer to the beginning of the driver image in memory.

Remarks

Use this routine to force a driver to be completely pageable. Drivers that call MmPageEntireDriver must not have an InterruptService routine (ISR) registered for any interrupts. If the interrupt occurs while the driver is paged out, the system issues a bug check.

The effect of a call to MmPageEntireDriver can be undone by calling MmResetDriverPaging.

If the driver is already completely pageable, calling MmPageEntireDriver has no effect. For more information about paging an entire driver, see Making Drivers Pageable.

See also

MmLockPagableCodeSection

MmLockPagableDataSection

MmLockPagableSectionByHandle

MmResetDriverPaging

MmUnlockPagableImageSection