NetRingGetPacketAtIndex 函数 (ring.h)

NetRingGetPacketAtIndex 函数从网络环检索数据包。

语法

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

参数

Ring

指向 NET_RING的指针。

Index

数据包索引,在 [0 范围内,Ring-NumberOfElements>)

返回值

返回指向数据包环中指定索引处 NET_PACKET 的指针。

注解

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

要求

要求
最低 UMDF 版本 2.33
标头 ring.h
IRQL 只要目标内存是驻留的任意级别

另请参阅

NET_PACKET

NetRingGetElementAtIndex