NetRingGetElementAtIndex - NtDoc

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

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

NtDoc

No description available.

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

NetRingGetElementAtIndex function

Description

The NetRingGetElementAtIndex function retrieves an element from a net ring.

Parameters

Ring [_In_]

A pointer to a NET_RING.

Index [_In_]

The element index, within the range [0, Ring->NumberOfElements).

Return value

Returns the element at the specified location.

Remarks

NetRingGetElementAtIndex uses the ElementStride member of the net ring to index into the buffer and returns the location of the specified element.

NetRingGetElementAtIndex is meant for generic use of net rings. Instead, a NetAdapterCx client driver typically calls either NetRingGetPacketAtIndex for a packet ring or NetRingGetFragmentAtIndex for a fragment ring.

See also

NetRingGetPacketAtIndex

NetRingGetFragmentAtIndex