MmPrepareMdlForReuse

VOID
MmPrepareMdlForReuse(

IN PMDL MDL
);

MmPrepareMdlForReuse reinitializes a caller-allocated MDL.

Parameters

MDL

Points to the MDL that will be reused.

Comments

MmPrepareMdlForReuse is called by drivers that allocate a set of MDLs that they use and reuse repeatedly. After each call to MmPrepareMdlForReuse, the given MDL must be reinitialized. Very few drivers call this routine.

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

See Also

IoAllocateMdl, IoBuildPartialMdl, IoFreeMdl, MmCreateMdl, MmInitializeMdl