NdisReleaseReadWriteLock (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.
NdisReleaseReadWriteLock releases a lock that was acquired in a preceding call to NdisAcquireReadWriteLock.
Syntax
VOID NdisReleaseReadWriteLock(
_Inout_ PNDIS_RW_LOCK Lock,
_In_ PLOCK_STATE LockState
);
Parameters
Lock [in, out]
Pointer to the acquired lock to be released.LockState [in]
Pointer to an opaque variable that tracks the state of the lock. This variable exists in the interval between the time the caller acquires and releases the lock.
Return value
None
Remarks
A driver must initialize a lock before calling any other Ndis..ReadWriteLock function used to gain or release read or write access to the resources protected by that lock. The NdisInitializeReadWriteLock function is used to initialize a lock.
A driver must call NdisAcquireReadWriteLock to acquire a lock before the driver can call NdisReleaseReadWriteLock. Each call to NdisAcquireReadWriteLock requires a reciprocal call to NdisReleaseReadWriteLock.
NdisReleaseReadWriteLock restores the original IRQL used by its caller before the call to NdisAcquireReadWriteLock was made.
Requirements
Target platform |
Universal |
Version |
|
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
DISPATCH_LEVEL |
See also