NdisMFlushLog

VOID
   NdisMFlushLog(
       IN NDIS_HANDLE LogHandle
       );

NdisMFlushLog clears the log file.

Parameters

LogHandle

Specifies the handle returned by NdisMCreateLog.

Comments

NdisMFlushLog resets the position pointers within the log file to the start of the file.

The driver must release any spin lock it is holding before calling NdisMFlushLog.

An NDIS intermediate driver cannot call NdisMFlushLog from any of its ProtocolXxx functions. Such a driver must call NdisIMSwitchToMiniport and make this call from a miniport context. If NdisIMSwitchToMiniport returns FALSE, the driver must call NdisIMQueueMiniportCallback so that its driver-supplied MiniportCallback function can call NdisMFlushLog.

Callers of NdisMFlushLog can be running at IRQL <= DISPATCH_LEVEL.

See Also

NdisIMQueueMiniportCallback, NdisIMSwitchToMiniport, NdisMCloseLog, NdisMCreateLog, NdisMWriteLogData, NdisReleaseSpinLock