Condividi tramite


Funzione NetRingGetPacketAtIndex (ring.h)

La funzione netRingGetPacketAtIndex recupera un pacchetto da un anello net.

Sintassi

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

Parametri

Ring

Puntatore a un NET_RING.

Index

L'indice del pacchetto, compreso nell'intervallo [0, Ring->NumberOfElements).

Valore restituito

Restituisce un puntatore al NET_PACKET in corrispondenza dell'indice specificato nell'anello di pacchetti.

Osservazioni

Questa funzione è un wrapper pratico per NetRingGetElementAtIndex. I driver client devono chiamare questa funzione quando si lavora con un anello di pacchetti anziché chiamare direttamente NetRingGetElementAtIn dex.

Fabbisogno

Requisito Valore
versione minima di UMDF 2.33
intestazione ring.h
IRQL Qualsiasi livello purché la memoria di destinazione sia residente

Vedere anche

NET_PACKET

NetRingGetElementAtIndex