NdisFreeRWLock function

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

Syntax


VOID NdisFreeRWLock(
  _In_  PNDIS_RW_LOCK_EX Lock
);

Parameters

Lock [in]

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

Version

Supported in NDIS 6.20 and later.

Header

Ndis.h (include Ndis.h)

IRQL

<=DISPATCH_LEVEL

See also

NDIS_RW_LOCK_EX
NdisAllocateRWLock
NdisReleaseRWLock

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft