NetFragmentIteratorAdvanceToTheEnd function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

The NetFragmentIteratorAdvanceToTheEnd method advances the current Index of a fragment iterator to its End index.

Syntax

void NetFragmentIteratorAdvanceToTheEnd(
  NET_RING_FRAGMENT_ITERATOR *Iterator
);

Parameters

Iterator

A pointer to a NET_RING_FRAGMENT_ITERATOR structure.

Return Value

None.

Remarks

After calling NetFragmentIteratorAdvanceToTheEnd, the fragment iterator's current Index advances to the iterator's End index. Therefore, the fragments between the old value of iterator's Index and the iterator's End - 1 inclusive are transferred to the OS.

Client drivers typically call NetFragmentIteratorAdvanceToTheEnd to cancel all fragments in the ring or perform other operations that drain all the ring's fragments.

For a code example of using this method, see Net rings and net ring iterators.

Requirements

   
Minimum KMDF version 1.29
Header netringiterator.h
IRQL Any level as long as target memory is resident

See Also

Net rings and net ring iterators

NET_RING_FRAGMENT_ITERATOR