Previous Next

NdisFreeSpinLock

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

VOID
  NdisFreeSpinLock(
    IN PNDIS_SPIN_LOCK  SpinLock
    );

Parameters

SpinLock
Pointer to the spin lock to be deinitialized.

Headers

Declared in Ndis.h. Include Ndis.h.

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