NetFragmentIteratorHasAny 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 NetFragmentIteratorHasAny method determines whether a fragment iterator has any valid elements to process in the fragment ring.

Syntax

BOOLEAN NetFragmentIteratorHasAny(
  NET_RING_FRAGMENT_ITERATOR const *Iterator
);

Parameters

Iterator

A pointer to a NET_RING_FRAGMENT_ITERATOR structure.

Return Value

Returns TRUE if the iterator's Index does not equal its End index. In other words, the iterator has a fragment to process. Otherwise, returns FALSE.

Remarks

Client drivers can call NetFragmentIteratorHasAny to test if the iterator has any valid elements to process. This method can be used to verify a fragment before processing it, or it can be used as a test condition for a loop when the driver is processing multiple fragments in a batch.

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