NetDeviceStoreResetDiagnostics - NtDoc

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

void NetDeviceStoreResetDiagnostics(
  [_In_]                                   WDFDEVICE   Device,
  [_In_]                                   SIZE_T      ResetDiagnosticsSize,
  [_In_reads_bytes_(ResetDiagnosticsSize)] const UINT8 *ResetDiagnosticsBuffer
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netdevice-netdevicestoreresetdiagnostics)

Description

The NetDeviceStoreResetDiagnostics function stores client driver collected reset diagnostics into the NetAdapterCx framework.

Parameters

Device [_In_]

The WDFDEVICE object the client driver previously created with a call to WdfDeviceCreate.

ResetDiagnosticsSize [_In_]

The size in bytes of the ResetDiagnosticsBuffer. The maximum size of reset diagnostics the framework accepts is 1 MB.

ResetDiagnosticsBuffer [_In_reads_bytes_(ResetDiagnosticsSize)]

A pointer to the data buffer that holds the reset diagnostics data. The data buffer can come from either paged or non-paged pool.

Remarks

The only valid scenario to invoke the NetDeviceStoreResetDiagnostics function is in a client driver's EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS callback. The client driver must call NetDeviceStoreResetDiagnostics at PASSIVE_LEVEL

To learn how to correctly use the NetDeviceStoreResetDiagnostics function, see Implement EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS.

See also

Recovering an unresponsive NIC with NetAdapterCx PLDR

WdfDeviceCreate

EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS