KeFlushQueuedDpcs function (wdm.h)

The KeFlushQueuedDpcs routine returns after all currently queued DPCs on all processors have executed their DPC routines to completion.

Syntax

void KeFlushQueuedDpcs();

Return value

None

Remarks

Drivers can use this routine to wait until all currently-queued DPCs are run. Note that KeFlushQueuedDpcs can take a long time to return, so drivers should not use it along any critical code paths.

Only DPCs queued prior to the call to KeFlushQueuedDpcs are guaranteed to have been executed to completion upon return. No guarantee is made for DPCs that are queued during the call to KeFlushQueuedDpcs.

Requirements

Requirement Value
Minimum supported client Available starting with Windows XP with SP2 and Windows Server 2003.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

IoInitializeDpcRequest

IoRequestDpc

KeInitializeDpc

KeInsertQueueDpc