MmBuildMdlForNonPagedPool

VOID
    MmBuildMdlForNonPagedPool(

        IN OUT PMDL  MemoryDescriptorList
        );

MmBuildMdlForNonPagedPool fills in the corresponding physical page array of a given MDL for a buffer in nonpaged system space (pool).

Parameters

MemoryDescriptorList
Points to an MDL that supplies a virtual address, byte offset, and length.

Comments

The physical page portion of the MDL is updated as the pages are locked in memory. The input MDL virtual address must be within the nonpaged portion of system space.

Callers of MmBuildMdlForNonPagedPool must be running at IRQL <= DISPATCH_LEVEL.

See Also

ExAllocatePool, ExAllocatePoolWithTag, IoAllocateMdl, MmCreateMdl, MmInitializeMdl, MmIsNonPagedSystemAddressValid, MmMapIoSpace, MmSizeOfMdl