mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
1d3bce1a59
KeFlushQueuedDpcs is used by some drivers, when unloading or removing a device, to be sure no DPC is still running their code. On a UP system this can be done "inline", on an SMP system, it requires to send an IPI to each processor that has DPCs queued and also synchronize it with the calling thread, which is what KeSetSystemAffinityThread does implicitly: When a queued DPC was detected on a remote processor (implying that processor is currently running at DISPATCH_LEVEL or above), KeSetSystemAffinityThread will schedule the current thread on that processor and send a DPC interrupt. The remote processor will handle that DPC interrupt once it is back below DISPATCH_LEVEL. It will only run the current thread, after all queued DPCs (including threaded DPCs) have finished running. |
||
---|---|---|
.. | ||
amd64 | ||
arm | ||
i386 | ||
apc.c | ||
balmgr.c | ||
bug.c | ||
clock.c | ||
config.c | ||
devqueue.c | ||
dpc.c | ||
eventobj.c | ||
except.c | ||
freeze.c | ||
gate.c | ||
gmutex.c | ||
ipi.c | ||
krnlinit.c | ||
mutex.c | ||
procobj.c | ||
profobj.c | ||
queue.c | ||
semphobj.c | ||
spinlock.c | ||
thrdobj.c | ||
thrdschd.c | ||
time.c | ||
timerobj.c | ||
wait.c |