NetAdapterInitSetDatapathCallbacks - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// netadapter.h

void NetAdapterInitSetDatapathCallbacks(
  [_Inout_] NETADAPTER_INIT                *AdapterInit,
  [_In_]    NET_ADAPTER_DATAPATH_CALLBACKS *DatapathCallbacks
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netadapter-netadapterinitsetdatapathcallbacks)

NetAdapterInitSetDatapathCallbacks function

Description

The NetAdapterInitSetDatapathCallbacks function sets a net adapter's callback functions for creating datapath packet queues.

Parameters

AdapterInit [_Inout_]

A pointer to a NETADAPTER_INIT structure that the driver obtained from a previous call to NetAdapterInitAllocate.

DatapathCallbacks [_In_]

A pointer to a driver-allocated and initialized NET_ADAPTER_DATAPATH_CALLBACKS structure that contains pointers to the adapter's datapath queue creation callback functions.

Remarks

This is an optional function. If a client driver does not provide its own packet queue creation handlers, NetAdapterCx provides default handlers on the driver's behalf.

Call this function after calling NetAdapterInitAllocate but before calling NetAdapterCreate.

If the driver encounters an error after the NETADAPTER_INIT allocation succeeds but before NetAdapterCreate succeeds, it must call NetAdapterInitFree to deallocate the NETADAPTER_INIT object.

For a code example of creating a NETADAPTER, see Device initialization.

See also

Device initialization

NetAdapterInitAllocate

NetAdapterInitFree

NetAdapterCreate