// nblapi.h
NDIS_EXPORTED_ROUTINE VOID NdisAdjustNetBufferCurrentMdl(
[in] NET_BUFFER *NetBuffer
);
View the official Windows Driver Kit DDI referenceNo description available.
The NdisAdjustNetBufferCurrentMdl function updates a NET_BUFFER structure based on the current data offset.
NetBuffer [in]A pointer to a NET_BUFFER structure.
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.