NdisFreeRWLock function

The NdisFreeRWLock function frees a read/write lock that was previously allocated with the NdisAllocateRWLock function.

Syntax

void NdisFreeRWLock(
  PNDIS_RW_LOCK_EX Lock
);

Parameters

Lock

A pointer to an opaque NDIS_RW_LOCK_EX variable that represents a lock. The caller can use this lock to gain write or read access to resources that are shared among non-ISR driver threads.

Return Value

None

Remarks

NDIS drivers call the NdisFreeRWLock function to free the NDIS_RW_LOCK_EX structure and any associated resources that were previously allocated with the NdisAllocateRWLock function.

A driver must call the NdisReleaseRWLock function to release a read/write lock before it calls the NdisFreeRWLock function.

Requirements

   
Minimum supported client Supported in NDIS 6.20 and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL <=DISPATCH_LEVEL

See Also

NDIS_RW_LOCK_EX

NdisAllocateRWLock

NdisReleaseRWLock