WdfInterruptReleaseLock メソッド

The WdfInterruptReleaseLock method ends a code sequence that executes at the device's DIRQL while holding an interrupt object's spin lock.

構文

VOID WdfInterruptReleaseLock(
  [in]  WDFINTERRUPT Interrupt
);

パラメーター

  • Interrupt [in]
    A handle to a framework interrupt object.

戻り値

None.

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

解説

The WdfInterruptReleaseLock method releases the specified interrupt object's spin lock and returns the processor's IRQL to the level that it was set to before the driver called WdfInterruptAcquireLock.

Your driver cannot call WdfInterruptReleaseLock before the framework has called the driver's EvtInterruptEnable callback function or after the framework has called the driver's EvtInterruptDisable callback function.

For more information about the WdfInterruptReleaseLock method, see Synchronizing Interrupt Code.

For more information about handling interrupts in framework-based drivers, see Handling Hardware Interrupts.

This method must be called at the DIRQL that was set by WdfInterruptReleaseLock.

For a code example that uses WdfInterruptReleaseLock, see WdfInterruptAcquireLock.

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfinterrupt.h (includeWdf.h)

ライブラリ

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

IRQL

See Remarks section.

参照

WdfInterruptAcquireLock

WdfInterruptSynchronize

EvtInterruptDisable

EvtInterruptEnable