NetRingGetFragmentAtIndex, fonction (ring.h)

La fonction NetRingGetFragmentAtIndex récupère un fragment à partir d’un anneau net.

Syntaxe

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

Paramètres

Ring

Pointeur vers un NET_RING.

Index

Index de fragment, dans la plage [0, Ring-NumberOfElements>).

Valeur retournée

Retourne un pointeur vers le NET_FRAGMENT à l’index spécifié dans l’anneau fragmentaire.

Remarques

Cette fonction est un wrapper pratique autour de NetRingGetElementAtIndex. Les pilotes clients doivent appeler cette fonction lors de l’utilisation d’un anneau de fragments au lieu d’appeler NetRingGetElementAtIndex directement.

Configuration requise

Condition requise Valeur
En-tête ring.h
IRQL N’importe quel niveau tant que la mémoire cible est résidente

Voir aussi

NET_FRAGMENT

NetRingGetElementAtIndex