NetRingAdvanceIndex - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ring.h

UINT32 NetRingAdvanceIndex(
  [_In_] NET_RING const *Ring,
  [_In_] UINT32         Index,
  [_In_] INT32          Distance
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ring-netringadvanceindex)

NetRingAdvanceIndex function

Description

The NetRingAdvanceIndex function advances the index in a net ring forward, wrapping around if necessary.

Parameters

Ring [_In_]

A pointer to a NET_RING to access.

Index [_In_]

The index value to advance.

Distance [_In_]

The distance to advance the index.

Return value

Returns the new index after advancing Distance forward in the net ring.

Remarks

NetRingAdvanceIndex enables client drivers to move forward multiple indices in the net ring. Client drivers can also call the wrapper function NetRingIncrementIndex to increment the index by 1.

See also

NET_RING

NetRingIncrementIndex