NdisAdjustNetBufferCurrentMdl function

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

Syntax


VOID NdisAdjustNetBufferCurrentMdl(
  _In_ PNET_BUFFER NetBuffer
);

Parameters

NetBuffer [in]

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

Target platform

Universal

Version

Supported in NDIS 6.0 and later.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

Any level (see Remarks section)

See also

NET_BUFFER

 

 

Send comments about this topic to Microsoft

Show: