WdfSpinLockAcquire - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfsync.h

VOID WdfSpinLockAcquire(
  WDFSPINLOCK SpinLock
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfsync-wdfspinlockacquire)

Description

The WdfSpinLockAcquire method acquires a specified spin lock.

Parameters

SpinLock

A handle to a framework spin-lock object, obtained by a previous call to WdfSpinLockCreate.

Remarks

The WdfSpinLockAcquire method returns after the specified spin lock has been acquired. For KMDF, the method returns at IRQL = DISPATCH_LEVEL. For UMDF, the method returns at passive. Your driver cannot call WdfSpinLockAcquire to acquire a spin lock that the driver has specified in a WDF_INTERRUPT_CONFIG structure. For more information about spin locks, see Using Framework Locks.

See also

WdfSpinLockCreate

WdfSpinLockRelease

WdfSpinlock rule (KMDF)

WdfSpinLockRelease rule (KMDF)