This documentation is archived and is not being maintained.

NdisReleaseSpinLock (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.

NdisReleaseSpinLock releases a spin lock that was acquired in a preceding call to NdisAcquireSpinLock.

Syntax


VOID NdisReleaseSpinLock(
  _In_ PNDIS_SPIN_LOCK SpinLock
);

Parameters

SpinLock [in]

Pointer to the acquired spin lock to be released.

Return value

None

Remarks

A driver must initialize its spin lock with NdisAllocateSpinLock before it calls any other Ndis..SpinLock function to access the resources protected by that spin lock.

A driver must call NdisAcquireSpinLock to acquire the spin lock before it can call NdisReleaseSpinLock. Each call to NdisAcquireSpinLock requires a reciprocal call to NdisReleaseSpinLock before the driver can call NdisAcquireSpinLock again.

NdisReleaseSpinLock restores the original IRQL at which its caller was running before the call to NdisAcquireSpinLock.

Any spin lock acquired with NdisAcquireSpinLock must be released with NdisReleaseSpinLock. Any spin lock acquired with NdisDprAcquireSpinLock must be released with NdisDprReleaseSpinLock.

For more information about acquiring and releasing NDIS spin locks, see Synchronization and Notification in Network Drivers.

Requirements

Target platform

Universal

Version

See NdisReleaseSpinLock.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

DISPATCH_LEVEL

See also

NdisAcquireSpinLock
NdisAllocateSpinLock
NdisDprAcquireSpinLock

 

 

Send comments about this topic to Microsoft

Show: