NdisFreeRWLock function (ndis.h)
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
[in] 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
Requirement | Value |
---|---|
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 |