NET_BUFFER_FREE_MDL callback function (nblapi.h)

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

Syntax

NET_BUFFER_FREE_MDL NetBufferFreeMdl;

void NetBufferFreeMdl(
  [in] MDL *Mdl
)
{...}

Parameters

[in] 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

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Header nblapi.h (include ndis.h)
IRQL <= DISPATCH_LEVEL

See also

NdisAdvanceNetBufferDataStart

NetAllocateMdl