NdisDprReleaseSpinLock function

The NdisDprReleaseSpinLock function releases a spin lock acquired in the immediately preceding call to the NdisDprAcquireSpinLock function.

Syntax


VOID NdisDprReleaseSpinLock(
  _In_  PNDIS_SPIN_LOCK SpinLock
);

Parameters

SpinLock [in]

Pointer to the acquired spin lock to be released.

Return value

None

Remarks

Release of the spin lock allows another driver function to use the resources the lock protects after that function acquires the spin lock.

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

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

Requirements

Version

Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisDprReleaseSpinLock (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisDprReleaseSpinLock (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

DISPATCH_LEVEL

DDI compliance rules

Irql_Synch_Function, SpinLock, SpinLockBalanced, SpinLockDpr, SpinLockDprRelease, SpinlockRelease

See also

NdisDprAcquireSpinLock

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft