MINIPORT_CANCEL_IDLE_NOTIFICATION - NtDoc

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

MINIPORT_CANCEL_IDLE_NOTIFICATION MiniportCancelIdleNotification;

VOID MiniportCancelIdleNotification(
  [in] NDIS_HANDLE MiniportAdapterContext
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ndis-miniport_cancel_idle_notification)

MINIPORT_CANCEL_IDLE_NOTIFICATION callback function

Description

NDIS calls the MiniportCancelIdleNotification handler function to notify the miniport driver that NDIS has detected activity on the suspended network adapter. Because of this, NDIS cancels the idle notification so that the network adapter can be transitioned to a full-power state.

Parameters

MiniportAdapterContext [in]

A handle to a context area that the miniport driver allocated in its MiniportInitializeEx function. The miniport driver uses this context area to maintain state information for a network adapter.

Remarks

The MiniportCancelIdleNotification handler function is required for miniport drivers that support the NDIS selective suspend interface. For more information about how the driver registers its selective suspend handler functions, see Registering NDIS Selective Suspend Handler Functions.

NDIS calls the miniport driver's MiniportIdleNotification handler function to start an NDIS selective suspend operation on an idle network adapter. After the network adapter has been suspended and transitioned to a low-power state, NDIS can cancel the outstanding idle notification if any of the following conditions are true:

NDIS cancels the idle notification by calling MiniportCancelIdleNotification. When this handler function is called, the miniport driver first cancels any bus-specific I/O request packets (IRPs) that it may have previously issued for the idle notification. Finally, the miniport driver calls NdisMIdleNotificationComplete to complete the idle notification.

For more information about how NDIS cancels the idle notification, see Canceling the NDIS Selective Suspend Idle Notification.

For guidelines on how to implement the MiniportCancelIdleNotification handler function and IRP completion routines, see Implementing a MiniportCancelIdleNotification Handler Function.

See also

IoCancelIrp

MiniportIdleNotification

NdisMIdleNotificationComplete