WdfSpinLockRelease メソッド

The WdfSpinLockRelease method releases a specified spin lock.

構文

VOID WdfSpinLockRelease(
  [in]  WDFSPINLOCK SpinLock
);

パラメーター

  • SpinLock [in]
    A handle to a framework spin-lock object, obtained by a previous call to WdfSpinLockCreate.

戻り値

None.

A bug check occurs if the driver supplies an invalid object handle.

解説

The WdfSpinLockRelease method releases the spin lock that a driver obtained by previously calling WdfSpinLockAcquire. WdfSpinLockRelease also restores the driver's IRQL to the value that it had before the driver called WdfSpinLockAcquire.

For more information about spin locks, see Synchronization Techniques for Framework-Based Drivers.

For a code example that uses WdfSpinLockRelease, see WdfSpinLockAcquire.

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfsync.h (includeWdf.h)

ライブラリ

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

DISPATCH_LEVEL

参照

WdfSpinLockAcquire

WdfSpinLockCreate