WdfFdoUnlockStaticChildListFromIteration 函数 (wdffdo.h)

[仅适用于 KMDF]

WdfFdoUnlockStaticChildListFromIteration 方法可解锁指定设备的子设备列表,并处理驱动程序在锁定列表时对列表所做的任何更改。

语法

void WdfFdoUnlockStaticChildListFromIteration(
  [in] WDFDEVICE Fdo
);

参数

[in] Fdo

表示父设备的框架设备对象的句柄。

返回值

没有

注解

如果驱动程序提供无效的对象句柄,则会发生 bug 检查。

使用静态总线枚举的总线驱动程序可以调用 WdfFdoUnlockStaticChildListFromIteration

若要锁定子列表,驱动程序调用 WdfFdoLockStaticChildListForIteration

可以嵌套对 WdfFdoLockStaticChildListForIteration 的调用,并且必须匹配对 WdfFdoUnlockStaticChildListFromIteration的等数调用。 如果驱动程序在锁定时添加或删除子列表中的项,框架会将这些更改排入队列,并在上次调用 WdfFdoUnlockStaticChildListFromIteration后对其进行处理。

有关静态子列表的详细信息,请参阅 枚举总线上的设备。

例子

有关使用 WdfFdoUnlockStaticChildListFromIteration的代码示例,请参阅 WdfFdoRetrieveNextStaticChild

要求

要求 价值
目标平台 普遍
最低 KMDF 版本 1.0
标头 wdffdo.h (包括 Wdf.h)
图书馆 Wdf01000.sys(请参阅框架库版本控制。
IRQL <= DISPATCH_LEVEL
DDI 符合性规则 DriverCreate(kmdf)KmdfIrql(kmdf)KmdfIrql2(kmdf),KmdfIrqlExplicit(kmdf)

另请参阅

WdfFdoLockStaticChildListForIteration