NdisReleaseReadWriteLock (Compact 2013)

3/26/2014

This function releases a lock that was acquired in a previous call to NdisAcquireReadWriteLock.

Syntax

VOID NdisReleaseReadWriteLock(
  PNDIS_RW_LOCK Lock,
  PLOCK_STATE LockState
);

Parameters

  • Lock
    [in] Points to the acquired lock to be released.
  • LockState
    [in] Points to an opaque variable that tracks the state of the lock. This variable exists in the interval between the time that the caller acquires and releases the lock.

Return Value

None.

Remarks

A driver must initialize a lock before calling any other NdisXXXReadWriteLock function that is used to gain or release read or write access to the resources that are 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.

Requirements

Header

ndis.h

See Also

Reference

NDIS Read Write Lock Interface
NdisAcquireReadWriteLock
NdisInitializeReadWriteLock