The NdisFreeSpinLock function releases a spin lock initialized in a preceding call to the NdisAllocateSpinLock functioin.
VOID NdisFreeSpinLock( _In_ PNDIS_SPIN_LOCK SpinLock );
Pointer to the spin lock to be deinitialized.
If the caller of NdisFreeSpinLock needs to use the spin lock again, it must call NdisAllocateSpinLock before passing that spin lock pointer to any of the Ndis..SpinLock or NdisInterlockedXxx functions.
Callers of NdisFreeSpinLock can run at any IRQL. Usually, this function is not called until a driver is unloading.
|Windows version||Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisFreeSpinLock (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisFreeSpinLock (NDIS 5.1)) in Windows XP.|
|Header||ndis.h (include Ndis.h)|
|IRQL||Any level (see Remarks section)|