// ndis.h
typedef struct _NDIS_SCATTER_GATHER_LIST_PARAMETERS {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_RECEIVE_QUEUE_ID QueueId;
NDIS_SHARED_MEMORY_USAGE SharedMemoryUsage;
PMDL Mdl;
PVOID CurrentVa;
ULONG Length;
NDIS_PROCESS_SG_LIST_HANDLER ProcessSGListHandler;
PVOID Context;
PSCATTER_GATHER_LIST ScatterGatherListBuffer;
ULONG ScatterGatherListBufferSize;
ULONG ScatterGatherListBufferSizeNeeded;
} NDIS_SCATTER_GATHER_LIST_PARAMETERS, *PNDIS_SCATTER_GATHER_LIST_PARAMETERS;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_SCATTER_GATHER_LIST_PARAMETERS structure specifies parameters that NDIS uses to build a scatter/gather list for a buffer.
HeaderThe NDIS_OBJECT_HEADER structure for the structure (NDIS_SCATTER_GATHER_LIST_PARAMETERS). The driver sets the Type member of the structure that Header specifies to NDIS_OBJECT_TYPE_DEFAULT, the Revision member to NDIS_SCATTER_GATHER_LIST_PARAMETERS_REVISION_1 and the Size member to NDIS_SIZEOF_SCATTER_GATHER_LIST_PARAMETERS_REVISION_1.
FlagsReserved for NDIS.
QueueIdAn NDIS_RECEIVE_QUEUE_ID type value that contains a queue identifier. The queue identifier is an integer between zero and the number of queues that the miniport adapter supports. A zero value indicates the default queue.
SharedMemoryUsageAn NDIS_SHARED_MEMORY_USAGE enumeration value that specifies the purpose of the shared memory.
MdlA pointer to a memory descriptor list (MDL) that describes the shared memory buffer.
CurrentVaA ULONG value for the current virtual address.
LengthA ULONG value that contains the length, in bytes, of the shared memory buffer.
ProcessSGListHandlerA pointer to a NetProcessSGList function (NDIS_PROCESS_SG_LIST_HANDLER entry point).
ContextA pointer to a block of driver-allocated context information that stores information about the scatter/gather list. NDIS passes the context information in calls to NetProcessSGList at the Context parameter.
ScatterGatherListBufferA pointer to a SCATTER_GATHER_LIST structure.
ScatterGatherListBufferSizeA ULONG value that contains the length, in bytes, of the scatter/gather list.
ScatterGatherListBufferSizeNeededA ULONG value where NDIS writes the total number of bytes that NDIS requires to build the scatter/gather list successfully.
To build a scatter/gather list, an NDIS driver passes the NDIS_SCATTER_GATHER_LIST_PARAMETERS structure to the NdisBuildScatterGatherList function.