IoFreeMdl

VOID
    IoFreeMdl(

        IN PMDL  Mdl
        );

IoFreeMdl releases a caller-allocated MDL.

Parameters

Mdl
Points to the MDL to be released.

Comments

If a driver allocates an MDL to describe a buffer, it must explicitly release the MDL when operations on the buffer are done.

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

See Also

IoAllocateMdl, IoBuildPartialMdl