MmPageEntireDriver

VOID
MmPageEntireDriver(
IN PVOID
AddressWithinSection
);

MmPageEntireDriver 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

Points to a symbolic address within the driver, for example, DriverEntry.

Comments

Use this routine to force a driver to be completely pageable. The driver must not have interrupts connected on its device before making this call since as a result of this call, the entire driver will be marked as pageable. If the driver is pageable, such code as the ISR code may be paged out after the driver calls MmPageEntireDriver.

MmPageEntireDriver may be called multiple times without intervening calls to MmResetDriverPaging. However, subsequent calls to MmPageEntireDriver do nothing if the driver's pageable status has not been reset by a call to MmResetDriverPaging.

For more information about paging an entire driver, see The Programmer's Guide.

Callers of MmPageEntireDriver run at IRQL PASSIVE_LEVEL.

See Also

MmResetDriverPaging, MmLockPagableCodeSection, MmLockPagableDataSection, MmLockPagableSectionByHandle, MmUnlockPagableImageSection