NdisFreeSpinLock

VOID
    NdisFreeSpinLock(

        IN PNDIS_SPIN_LOCK  SpinLock
        );

NdisFreeSpinLock releases a spin lock initialized in a preceding call to NdisAllocateSpinLock.

Parameters

SpinLock
Points to the spin lock to be deinitialized.

Comments

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 run at IRQL PASSIVE_LEVEL. Usually, this function is not called until a driver is unloading.

See Also

MiniportHalt, NdisAcquireSpinLock, NdisAllocateSpinLock, NdisDprAcquireSpinLock, NdisDprReleaseSpinLock, NdisInterlockedAddUlong, NdisInterlockedInsertHeadList, NdisInterlockedInsertTailList, NdisInterlockedRemoveHeadList, NdisReleaseSpinLock