The KeInitializeSpinLock routine initializes a variable of type KSPIN_LOCK.
- SpinLock [out]
Pointer to a spin lock, for which the caller must provide the storage.
Storage for a spin lock object must be resident: in the device extension of a driver-created device object, in the controller extension of a driver-created controller object, or in nonpaged pool allocated by the caller.
For more information about spin locks, see Spin Locks.
Callers of this routine can be running at any IRQL. Usually, a caller is running at IRQL = PASSIVE_LEVEL in an AddDevice routine.
|Available starting with Windows 2000.|
|Any level (see Remarks section)|
DDI compliance rules