NetRxQueueInitGetQueueId function (netrxqueue.h)

Retrieves the identifier of the receive queue associated with a receive queue.

Syntax

ULONG NetRxQueueInitGetQueueId(
  [_In_] NETRXQUEUE_INIT *NetRxQueueInit
);

Parameters

[_In_] NetRxQueueInit

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

Return value

Returns a ULONG that identifies a receive queue.

Remarks

The client driver receives a pointer to a NETRXQUEUE_INIT structure in its EVT_NET_ADAPTER_CREATE_RXQUEUE callback function.

Starting with zero, NetAdapterCx assigns a 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_RX_CAPABILITIES structure, which is initialized and passed to NetAdapterSetDataPathCapabilities when starting the net adapter. Identifier values range from zero to the value of (((MaxNumber of TxQueues) + (MaxNumber of RxQueues)) - 1).

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.21
Minimum UMDF version 2.33
Header netrxqueue.h (include netadaptercx.h)
IRQL PASSIVE_LEVEL