NetRingGetFragmentAtIndex function (ring.h)

The NetRingGetFragmentAtIndex function retrieves a fragment from a net ring.

Syntax

NET_FRAGMENT * NetRingGetFragmentAtIndex(
  NET_RING const *Ring,
  UINT32         Index
);

Parameters

Ring

A pointer to a NET_RING.

Index

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

Return value

Returns a pointer to the NET_FRAGMENT at the specified index in the fragment ring.

Remarks

This function is a convenient wrapper around NetRingGetElementAtIndex. Client drivers should call this function when working with a fragment ring instead of calling NetRingGetElementAtIndex directly.

Requirements

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

See also

NET_FRAGMENT

NetRingGetElementAtIndex