NET_BUFFER_LIST_CONTEXT Structure

NDIS drivers use NET_BUFFER_LIST_CONTEXT structures to store additional data that is associated with a NET_BUFFER_LIST structure. The Context member of the NET_BUFFER_LIST structure is a pointer to a NET_BUFFER_LIST_CONTEXT structure. The information stored in the NET_BUFFER_LIST_CONTEXT structures is opaque to NDIS and other drivers in the stack.

The following figure shows the fields in a NET_BUFFER_LIST_CONTEXT structure.

Diagram illustrating the fields in a NET_BUFFER_LIST_CONTEXT structure.

The NET_BUFFER_LIST_CONTEXT structure includes ContextData member that contains the context data. This data can be any context information that a driver requires for the NET_BUFFER_LIST structure.

Drivers should use the following NDIS macros and functions to access and manipulate members in a NET_BUFFER_LIST_CONTEXT structure:

NdisAllocateNetBufferListContext

NdisFreeNetBufferListContext

NET_BUFFER_LIST_CONTEXT_DATA_START

NET_BUFFER_LIST_CONTEXT_DATA_SIZE