Bewerken

Delen via


NetRingAdvanceIndex function (ring.h)

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

Syntax

UINT32 NetRingAdvanceIndex(
  [_In_] NET_RING const *Ring,
  [_In_] UINT32         Index,
  [_In_] INT32          Distance
);

Parameters

[_In_] Ring

A pointer to a NET_RING to access.

[_In_] Index

The index value to advance.

[_In_] Distance

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.

Requirements

Requirement Value
Minimum UMDF version 2.33
Header ring.h
IRQL Any level as long as target memory is resident

See also

NET_RING

NetRingIncrementIndex