// wdm.h
VOID KeFlushQueuedDpcs();
View the official Windows Driver Kit DDI reference
No description available.
The KeFlushQueuedDpcs routine returns after all currently queued DPCs on all processors have executed their DPC routines to completion.
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.