Microsoft Windows CE 3.0  

NdisReleaseSpinLock

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function releases a spin lock that was acquired in a preceding call to the NdisAcquireSpinLockfunction.

VOID NdisReleaseSpinLock(
IN PNDIS_SPIN_LOCK
SpinLock
);

Parameters

SpinLock
Pointer to the acquired spin lock to be released.

Remarks

In Windows CE, NDIS spin locks are implemented using critical sections.

A driver must initialize its spin lock with the NdisAllocateSpinLockfunction before it calls any other Ndis XXX SpinLockfunction to access the resources protected by that spin lock.

A driver must call the NdisAcquireSpinLockfunction to acquire the spin lock before it can call this function. Each call to NdisAcquireSpinLockrequires a reciprocal call to this function before the driver can call NdisAcquireSpinLockagain.

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

Any spin lock acquired with NdisAcquireSpinLockmust be released with this function. Any spin lock acquired with the NdisDprAcquireSpinLockfunction must be released with the NdisDprReleaseSpinLockfunction.

A driver that calls this function is running at IRQL DISPATCH_LEVEL.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Ndis.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

NdisAcquireSpinLock, NdisDprAcquireSpinLock



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.