NetRingGetElementAtIndex 函数 (ring.h)
NetRingGetElementAtIndex 函数从 net ring 中检索元素。
语法
void * NetRingGetElementAtIndex(
[_In_] NET_RING const *Ring,
[_In_] UINT32 Index
);
参数
[_In_] Ring
指向 NET_RING的指针。
[_In_] Index
元素索引,在 [0, Ring->NumberOfElements) 范围内。
返回值
返回位于指定位置的元素。
言论
NetRingGetElementAtIndex 使用 net ring 的 ElementStride 成员为缓冲区编制索引,并返回指定元素的位置。
NetRingGetElementAtIndex 旨在通用使用 net 通道。 相反,NetAdapterCx 客户端驱动程序通常会为数据包环调用 NetRingGetPacketAtIndex,或者为片段环调用 NetRingGetFragmentAtIndex。
要求
要求 | 价值 |
---|---|
目标平台 | 普遍 |
最低 KMDF 版本 | 1.29 |
最低 UMDF 版本 | 2.33 |
标头 | ring.h (include netadaptercx.h) |
IRQL | 只要目标内存是驻留的,任何级别 |