NdisAdjustNetBufferCurrentMdl function (ndis/nblapi.h)

The NdisAdjustNetBufferCurrentMdl function updates a NET_BUFFER structure based on the current data offset.

Syntax

NDIS_EXPORTED_ROUTINE VOID NdisAdjustNetBufferCurrentMdl(
  [in] NET_BUFFER *NetBuffer
);

Parameters

[in] NetBuffer

A pointer to a NET_BUFFER structure.

Return value

None

Remarks

The NdisAdjustNetBufferCurrentMdl function recalculates and sets the CurrentMdl and CurrentMdlOffset members of a NET_BUFFER structure based on the DataOffset member of the NET_BUFFER structure.

Callers of NdisAdjustNetBufferCurrentMdl can run at any IRQL, but typically run at IRQL <= DISPATCH_LEVEL.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Universal
Header ndis/nblapi.h (include ndis.h)
Library Ndis.lib
IRQL Any level (see Remarks section)

See also

NET_BUFFER