// returncontext.h
EXTERN_C_START NET_FRAGMENT_RETURN_CONTEXT * NetExtensionGetFragmentReturnContext(
NET_EXTENSION const *Extension,
UINT32 Index
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetExtensionGetFragmentReturnContext function retrieves the return context extension information for a net fragment.
ExtensionA pointer to a NET_EXTENSION structure that describes the return context extension information for this fragment.
IndexThe index in the fragment ring for the target NET_FRAGMENT.
Returns a pointer to a NET_FRAGMENT_RETURN_CONTEXT structure that contains the return context information for the fragment.
NIC client drivers typically query offsets for fragment extensions during datapath queue creation, then store them in their queue context space so they don't have to query them too often. For an example of this, see Transmit and receive queues. Clients can retrieve the return context offset from the queue context to pass to NetExtensionGetFragmentReturnContext.
This function is a wrapper function around NetExtensionGetData.
Packet descriptors and extensions