NetTxQueueInitGetQueueId function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

Retrieves the identifier associated with a transmit queue.

Syntax

ULONG NetTxQueueInitGetQueueId(
  NETTXQUEUE_INIT *NetTxQueueInit
);

Parameters

NetTxQueueInit

A pointer to a NetAdapterCx-allocated NETTXQUEUE_INIT structure. For more information, see the Remarks section.

Return Value

Returns a ULONG that identifies a transmit queue.

Remarks

The client driver receives a pointer to a NETTXQUEUE_INIT structure in its EVT_NET_ADAPTER_CREATE_TXQUEUE callback function.

Starting with zero, NetAdapterCx assigns an unique identifier value for each queue that it creates. The client driver specifies the number of transmit queues that the network adapter supports in the MaximumNumberOfQueues member of the NET_ADAPTER_TX_CAPABILITIES structure, which is initialized and passed to NetAdapterSetDataPathCapabilities when starting a net adapter. Identifier values range from zero to the value of (((MaxNumber of TxQueues) + (MaxNumber of RxQueues)) - 1).

Requirements

   
Target Platform Universal
Minimum KMDF version 1.21
Header nettxqueue.h (include netadaptercx.h)
IRQL PASSIVE_LEVEL