NetRingGetPacketAtIndex function (ring.h)

The NetRingGetPacketAtIndex function retrieves a packet from a net ring.

Syntax

NET_PACKET * NetRingGetPacketAtIndex(
  NET_RING const *Ring,
  UINT32         Index
);

Parameters

Ring

A pointer to a NET_RING.

Index

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

Return value

Returns a pointer to the NET_PACKET at the specified index in the packet ring.

Remarks

This function is a convenient wrapper around NetRingGetElementAtIndex. Client drivers should call this function when working with a packet 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_PACKET

NetRingGetElementAtIndex