Initializing Spin Locks
Before calling any support routine that requires access to a caller-supplied executive spin lock, a driver must call KeInitializeSpinLock to initialize the corresponding executive spin lock. Support routines that require an initialized executive spin lock include the following instances:
KeAcquireSpinLock and then KeReleaseSpinLock
KeAcquireSpinLockAtDpcLevel and then KeReleaseSpinLockFromDpcLevel
KeAcquireInStackQueuedSpinLock and then KeReleaseInStackQueuedSpinLock
KeAcquireInStackQueuedSpinLockAtDpcLevel and then KeReleaseInStackQueuedSpinLockFromDpcLevel
An ExInterlockedXxx routine
Before a lowest-level driver calls IoConnectInterrupt and KeSynchronizeExecution, it must call KeInitializeSpinLock to initialize an interrupt spin lock for which it provides storage.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for