NdisFreeSpinLock (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

Syntax

VOID NdisFreeSpinLock(
  _In_ PNDIS_SPIN_LOCK SpinLock
);

Parameters

  • SpinLock [in]
    Pointer to the spin lock to be deinitialized.

Return value

None

Remarks

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.

Usually, this function is not called until a driver is unloading.

Requirements

Target platform

Universal

Version

See NdisFreeSpinLock.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

PASSIVE_LEVEL

See also

MiniportHalt

NdisAcquireSpinLock

NdisAllocateSpinLock

NdisDprAcquireSpinLock

NdisDprReleaseSpinLock

NdisInterlockedAddUlong

NdisInterlockedInsertHeadList

NdisInterlockedInsertTailList

NdisInterlockedRemoveHeadList

NdisReleaseSpinLock

 

 

Send comments about this topic to Microsoft