// poll.h
typedef struct _NDIS_POLL_TRANSMIT_DATA {
ULONG MaxNblsToComplete;
ULONG Reserved1[3];
NET_BUFFER_LIST *CompletedNblChain;
ULONG NumberOfCompletedNbls;
ULONG NumberOfRemainingNbls;
ULONG SendCompleteFlags;
ULONG Reserved2;
void *Reserved3[4];
} NDIS_POLL_TRANSMIT_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
Miniport drivers use the NDIS_POLL_TRANSMIT_DATA structure to perform send completions when using a Poll object.
MaxNblsToCompleteThe maximum number of NET_BUFFER_LIST structures (NBLs) that a miniport driver should include in a transmit completion. If this value is NDIS_ANY_NUMBER_OF_NBLS, the driver may complete an unlimited number of transmit NBLs.
Reserved1Reserved for future use, must be zero.
CompletedNblChainA pointer that the miniport driver assigns to an NBL chain with the completed transmit packets.
NumberOfCompletedNblsThe number of NBLs that the driver placed in the CompletedNblChain. The driver can set this value to NDIS_ANY_NUMBER_OF_NBLS if it wants NDIS to count the NBLs.
NumberOfRemainingNblsSpecifies the number of NBLs that remain to be completed. A value of zero indicates that there are no more NBLs to complete. A value of NDIS_ANY_NUMBER_OF_NBLS indicates that there is some unknown (but non-zero) number of NBLs remaining. The driver should only fill this field with a precise number if it is cheap to calculate.
SendCompleteFlagsA combination of zero or more of the following flags:
NDIS_SEND_COMPLETE_FLAGS_SINGLE_QUEUE
NDIS_SEND_COMPLETE_FLAGS_SWITCH_SINGLE_SOURCE
Reserved2Reserved for future use, must be zero.
Reserved3Reserved for future use, must be zero.
An instance the NDIS_POLL_TRANSMIT_DATA structure is contained in the NDIS_POLL_DATA structure that NDIS passes to the miniport driver as a parameter to the NdisPoll callback.