Hardware Dev Center

NDIS Spin Lock Interface

The following table describes the functions for the NDIS spin lock interface that are included in this section.

TopicDescription

NdisAcquireSpinLock

The NdisAcquireSpinLock function acquires a spin lock so the caller gains exclusive access to the resources, shared among driver functions, that the spin lock protects.

NdisAllocateSpinLock

The NdisAllocateSpinLock function initializes a variable of type NDIS_SPIN_LOCK, used to synchronize access to resources shared among non-ISR driver functions.

NdisDprAcquireSpinLock

The NdisDprAcquireSpinLock function acquires a spin lock so the caller can synchronize access to resources shared among non-ISR driver functions in a multiprocessor-safe way.

NdisDprReleaseSpinLock

The NdisDprReleaseSpinLock function releases a spin lock acquired in the immediately preceding call to the NdisDprAcquireSpinLock function.

NdisFreeSpinLock

The NdisFreeSpinLock function releases a spin lock initialized in a preceding call to the NdisAllocateSpinLock functioin.

NdisReleaseSpinLock

The NdisReleaseSpinLock function releases a spin lock that was acquired in a preceding call to the NdisAcquireSpinLock function.

 

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft