NDIS_SET_POLL_NOTIFICATION回调函数 (poll.h)

微型端口驱动程序实现 NdisSetPollNotification 回调函数,以启用或禁用与 Poll 对象关联的中断。

语法

NDIS_SET_POLL_NOTIFICATION NdisSetPollNotification;

void() NdisSetPollNotification(
  [_In_]    void *Context,
  [_Inout_] NDIS_POLL_NOTIFICATION *Notification
)
{...}

参数

[_In_] Context

指向驱动程序在创建 Poll 对象时提供的上下文信息的指针。

[_Inout_] Notification

指向包含 Poll 对象的中断状态的 NDIS_POLL_NOTIFICATION 结构的指针。

言论

微型端口驱动程序在微型端口适配器初始化期间注册 NdisSetPollNotification 回调。 驱动程序在 调用 NdisRegisterPoll之前,在 SetPollNotificationHandlerNDIS_POLL_CHARACTERISTICS 参数中为 NdisSetPollNotification 函数指定入口点。

NDIS 通常调用 NdisSetPollNotification 回调,当它检测到微型端口驱动程序在 NdisPoll中没有取得进展。 NDIS 使用 NdisSetPollNotification 告诉驱动程序,它将停止调用 NdisPoll。 当准备好处理新工作时,驱动程序应调用 NdisRequestPoll

要求

要求 价值
最低支持的客户端 Windows 11
支持的最低服务器 Windows Server 2022
标头 poll.h (include ndis.h)
IRQL <= DISPATCH_LEVEL

另请参阅

NdisPoll

NdisRequestPoll

NDIS_POLL_NOTIFICATION

NDIS_POLL_CHARACTERISTICS

NdisRegisterPoll