NetRxQueueGetExtension function (netrxqueue.h)

The NetRxQueueGetExtension function retrieves a packet extension for all packets in a receive (Rx) queue.

Syntax

void NetRxQueueGetExtension(
  [_In_]  NETPACKETQUEUE            PacketQueue,
  [_In_]  const NET_EXTENSION_QUERY *Query,
  [_Out_] NET_EXTENSION             *Extension
);

Parameters

[_In_] PacketQueue

The receive queue object.

[_In_] Query

A pointer to a driver-allocated and initialized NET_EXTENSION_QUERY structure that contains information about the desired packet extension.

[_Out_] Extension

A handle to a driver-allocated NET_EXTENSION structure that receives the packet extension.

Return value

None

Remarks

Client drivers typically call this function from their EvtNetAdapterCreateRxQueue callback function after queue creation. To prevent frequent extension queries, store the extension returned by this function in your queue context space.

Requirements

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

See also

Packet descriptors and extensions