NDIS Read Write Lock Interface (NDIS 5.1)
Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
NdisInitializeReadWriteLockinitializes a variable of type NDIS_RW_LOCK. An NDIS_RW_LOCK variable is used to limit write access to shared resources to one non-ISR-driver thread at a time. This NDIS_RW_LOCK can allow multiple non-ISR-driver threads concurrent read access to those resources. Such read access is not permitted during a write access.
NdisAcquireReadWriteLockacquires a lock that the caller uses for either write or read access to the resources that are shared among driver threads. Miniport drivers that are running at IRQL < DISPATCH_LEVEL call this function to acquire a read-write lock. Read-write locks are used for resources that are frequently accessed for reading and infrequently accessed for writing.
NdisReleaseReadWriteLockreleases a read-write lock that was acquired in a preceding call to NdisAcquireReadWriteLock.
This section includes:
NdisAcquireReadWriteLock (NDIS 5.1)
NdisInitializeReadWriteLock (NDIS 5.1)
NdisReleaseReadWriteLock (NDIS 5.1)