NET_ADAPTER_DATAPATH_CALLBACKS_INIT 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.

The NET_ADAPTER_DATAPATH_CALLBACKS_INIT method initializes a NET_ADAPTER_DATAPATH_CALLBACKS structure.

Syntax

void NET_ADAPTER_DATAPATH_CALLBACKS_INIT(
  NET_ADAPTER_DATAPATH_CALLBACKS *DatapathCallbacks,
  PFN_NET_ADAPTER_CREATE_TXQUEUE EvtAdapterCreateTxQueue,
  PFN_NET_ADAPTER_CREATE_RXQUEUE EvtAdapterCreateRxQueue
);

Parameters

DatapathCallbacks

A pointer to a driver-allocated NET_ADAPTER_DATAPATH_CALLBACKS structure.

EvtAdapterCreateTxQueue

A pointer to the client driver's implementation of the EVT_NET_ADAPTER_CREATE_TXQUEUE callback function.

EvtAdapterCreateRxQueue

A pointer to the client driver's implementation of the EVT_NET_ADAPTER_CREATE_RXQUEUE callback function.

Return Value

This method does not return a value.

Remarks

Call this method to initialize the NET_ADAPTER_DATAPATH_CALLBACKS structure before calling NetAdapterInitSetDatapathCallbacks.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.27
Header netadapter.h
Library netadaptercxstub.lib

See Also

NET_ADAPTER_DATAPATH_CALLBACKS

NetAdapterInitSetDatapathCallbacks