【问题标题】:Who handles the IRP's and decides which IRP is to be sent and in which order?谁处理 IRP 并决定发送哪个 IRP 以及按什么顺序发送?
【发布时间】:2013-10-22 06:55:16
【问题描述】:

在 WDM 中调试烤面包机驱动程序时,我的 Bus_PnP 具有 IRP 堆栈,其中分配了要处理的 MINOR 函数,但谁将其分配给 IRP 堆栈的次要函数。

【问题讨论】:

    标签: windows device-driver wdk wdm


    【解决方案1】:

    主要功能和次要功能代码分配给调用API,或底层操作系统。在这种情况下,即插即用,它们将由管理即插即用的 I/O 子系统部分分配。

    您可能想阅读 MSDN 上的“Implementing Plug and Play

    了解IoGetCurrentIrpStackLocation routine

    IO_STACK_LOCATION:

    一般来说,如果您对 WDM Windows 驱动程序和内部结构感兴趣,最好阅读 Tony Mason 和 Peter Viscarola 的“Windows NT 设备驱动程序开发”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-24
      • 1970-01-01
      • 1970-01-01
      • 2015-06-20
      • 1970-01-01
      • 2015-05-09
      • 2017-05-28
      • 1970-01-01
      相关资源
      最近更新 更多