NdisReleaseReadWriteLock - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

VOID NdisReleaseReadWriteLock(
  [in, out] PNDIS_RW_LOCK Lock,
  [in]      PLOCK_STATE   LockState
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndisreleasereadwritelock)

NdisReleaseReadWriteLock function

Description

The NdisReleaseReadWriteLock function releases a lock that was acquired in a preceding call to NdisAcquireReadWriteLock.

Note The read-write lock interface is deprecated for NDIS 6.20 and later drivers, which should use NdisReleaseRWLock instead of NdisReleaseReadWriteLock.

Parameters

Lock [in, out]

A pointer to an NDIS_RW_LOCK variable for the acquired lock to be released.

LockState [in]

A pointer to an opaque LOCK_STATE variable that tracks the state of the lock. This variable exists in the interval between the time the caller acquires and releases the lock.

Remarks

A driver must initialize a lock before calling any other NdisXxxReadWriteLock function that is used to acquire 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 the NdisAcquireReadWriteLock function 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 that was used by its caller before the call to NdisAcquireReadWriteLock was made.

See also

LOCK_STATE

NDIS_RW_LOCK

NdisAcquireReadWriteLock

NdisInitializeReadWriteLock

NdisReleaseRWLock