KeFlushQueuedDpcs 函数 (wdm.h)
KeFlushQueuedDpcs 例程返回后,所有处理器上当前排队的 DPC 都执行了其 DPC 例程以完成。
语法
void KeFlushQueuedDpcs();
返回值
没有
言论
驱动程序可以使用此例程等待所有当前排队的 DPC 运行。 请注意,KeFlushQueuedDpcs 可能需要很长时间才能返回,因此驱动程序不应在任何关键代码路径上使用它。
只有在调用 KeFlushQueuedDpcs 之前排队的 DPC 才能保证 在返回时执行完成。 对调用 KeFlushQueuedDpcs时排队的 DPC 没有保证。
要求
要求 | 价值 |
---|---|
最低支持的客户端 | 从 SP2 和 Windows Server 2003 的 Windows XP 开始可用。 |
目标平台 | 普遍 |
标头 | wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h) |
库 | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |
DDI 符合性规则 | HwStorPortProhibitedDIS(storport) |