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_RX_CAPABILITIES_INIT_DRIVER_MANAGED method initializes a NET_ADAPTER_RX_CAPABILITIES structure for a net adapter that would like to specify driver-managed receive buffer allocation and attachment.
void NET_ADAPTER_RX_CAPABILITIES_INIT_DRIVER_MANAGED( NET_ADAPTER_RX_CAPABILITIES *RxCapabilities, PFN_NET_ADAPTER_RETURN_RX_BUFFER EvtAdapterReturnRxBuffer, SIZE_T MaximumFrameSize, SIZE_T MaximumNumberOfQueues );
A pointer to a driver-allocated NET_ADAPTER_RX_CAPABILITIES structure.
A pointer to the client driver's EVT_NET_ADAPTER_RETURN_RX_BUFFER callback function. For more information, see the Remarks section.
The maximum number of receive queues that the adapter supports.
This method does not return a value.
This method is one of three possible methods to call in order to initialize a NET_ADAPTER_RX_CAPABILITIES structure. Which one the client driver should call depends on how it would like to allocate receive buffers and if it would like to use DMA.
The client driver must call NET_ADAPTER_RX_CAPABILITIES_INIT_DRIVER_MANAGED to initialize its NET_ADAPTER_RX_CAPABILITIES structure if it would like to perform manual receive buffer allocation and attachment. By calling this method, the Rx capabilities structure's AllocationMode member is set to NetRxFragmentBufferAllocationModeDriver and the AttachmentMode member is set to NetRxFragmentBufferAttachmentModeDriver. In this case, it must also provide a pointer to its EVT_NET_ADAPTER_RETURN_RX_BUFFER callback function in the structure for the operating system to invoke once the system has finished with the receive buffer.
|Minimum KMDF version||1.25|
|Header||netadapter.h (include netadaptercx.h)|