NetRingGetFragmentAtIndex 函数 (ring.h)

NetRingGetFragmentAtIndex 函数从网环检索片段。

语法

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

参数

Ring

指向 NET_RING的指针。

Index

[ 0, Ring-NumberOfElements>) 范围内的片段索引。

返回值

返回指向片段环中指定索引处 NET_FRAGMENT 的指针。

注解

此函数是 NetRingGetElementAtIndex 的便捷包装器。 客户端驱动程序在使用片段环时应调用此函数,而不是直接调用 NetRingGetElementAtIndex

要求

要求
Header ring.h
IRQL 只要目标内存是驻留的任意级别

另请参阅

NET_FRAGMENT

NetRingGetElementAtIndex