다음을 통해 공유


NetFreeMdl (Compact 2013)

3/26/2014

This function frees an MDL that was previously allocated by the NetAllocateMdl function.

Syntax

VOID
  NetFreeMdl(
    IN  PMDL  Mdl
    );

Parameters

  • Mdl
    A pointer to the MDL that is to be freed.

Return Value

None

Remarks

If the NDIS driver specifies an entry point for the NetFreeMdl function at the FreeMdl parameter of the NdisAdvanceNetBufferDataStart function, NDIS calls NetFreeMdl to free an MDL and memory.

NetFreeMdl frees the MDL and memory that were allocated by the NetAllocateMdl function.

When NetFreeMdl frees the memory, it should use the same memory management mechanism that was used in NetAllocateMdl to allocate the memory.

NDIS calls NetFreeMdl at IRQL <= DISPATCH_LEVEL.

Requirements

Header

ndis.h

See Also

Reference

NDIS NET_BUFFER Functions
NetAllocateMdl
NdisAdvanceNetBufferDataStart