Edit

Share via


KfAcquireSpinLock function (wdm.h)

The KfAcquireSpinLock routine acquires a spin lock so the caller can synchronize access to shared data in a multiprocessor-safe way by raising IRQL.

Syntax

KIRQL KfAcquireSpinLock(
  PKSPIN_LOCK SpinLock
);

Parameters

SpinLock

Pointer to an initialized KSPIN_LOCK spin lock for which the caller provides the storage.

Remarks

For more information about spin locks, see Spin Locks.

Requirements

Requirement Value
Header wdm.h (include Wdm.h)
DLL hal.dll
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also