共用方式為


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 只要目標記憶體是常駐的任何層級

另請參閱

NET_PACKET

NetRingGetElementAtIndex