共用方式為


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

另請參閱

NetRingGetPacketAtIndex

NetRingGetFragmentAtIndex