NetRingGetFragmentAtIndex 函式 (ring.h)
NetRingGetFragmentAtIndex 函式會從 net ring 擷取片段。
語法
NET_FRAGMENT * NetRingGetFragmentAtIndex(
NET_RING const *Ring,
UINT32 Index
);
參數
Ring
NET_RING的指標。
Index
片段索引,在 [0, Ring->NumberOfElements] 的範圍內。
傳回值
傳回位於片段環形中指定索引處之 NET_FRAGMENT 的指標。
言論
此函式是 NetRingGetElementAtIndex的便利包裝函式。 使用片段通道時,客戶端驅動程序應該呼叫此函式,而不是直接呼叫 NetRingGetElementAtIndex。
要求
要求 | 價值 |
---|---|
最低 UMDF 版本 | 2.33 |
標頭 | ring.h |
IRQL | 只要目標記憶體是常駐的任何層級 |