NetRingIncrementIndex function (ring.h)

Returns the next index value after the specified index value, wrapping around to the beginning of the ring buffer if necessary.

Syntax

UINT32 NetRingIncrementIndex(
  [in] NET_RING const *Ring,
  [in] UINT32         Index
);

Parameters

[in] Ring

A pointer to a NET_RING.

[in] Index

The index value to increment.

Return value

Returns the next index value after the specified index value, wrapping around to the beginning of the ring buffer if necessary.

Remarks

This routine is a convenient equivalent to calling NetRingAdvanceIndex with a Distance of 1.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.29
Minimum UMDF version 2.33
Header ring.h (include netadaptercx.h)
IRQL Any level as long as target memory is resident

See also

NET_RING

NetRingAdvanceIndex