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:

Before a lowest-level driver calls IoConnectInterrupt and KeSynchronizeExecution, it must call KeInitializeSpinLock to initialize an interrupt spin lock for which it provides storage.