NET_BUFFER_FREE_MDL_HANDLER callback function

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

Syntax


NET_BUFFER_FREE_MDL_HANDLER NetFreeMdl;

VOID NetFreeMdl(
  _In_ PMDL Mdl
)
{ ... }

Parameters

Mdl [in]

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

Version

Supported in NDIS 6.0 and later.

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

See also

NetAllocateMdl
NdisAdvanceNetBufferDataStart

 

 

Send comments about this topic to Microsoft

Show: