NetRingGetPacketAtIndex 函数 (ring.h)
NetRingGetPacketAtIndex 函数从 net ring 检索数据包。
语法
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 | 只要目标内存是驻留的,任何级别 |