Expand Minimize

VideoPortReleaseSpinLockFromDpcLevel function

The VideoPortReleaseSpinLockFromDpcLevel function releases the spin lock obtained by a previous call to VideoPortAcquireSpinLockAtDpcLevel.

Syntax


VOID VideoPortReleaseSpinLockFromDpcLevel(
  _In_     PVOID HwDeviceExtension,
  _Inout_  PSPIN_LOCK SpinLock
);

Parameters

HwDeviceExtension [in]

Pointer to the miniport driver's device extension.

SpinLock [in, out]

Pointer to a memory location that contains the spin lock to be released.

Return value

None

Remarks

Miniport drivers call VideoPortReleaseSpinLockFromDpcLevel to release a spin lock acquired by calling VideoPortAcquireSpinLockAtDpcLevel.

It is an error to call VideoPortReleaseSpinLockFromDpcLevel if the given spin lock was acquired by calling VideoPortAcquireSpinLock because the caller's original IRQL is not restored, which can cause deadlocks or fatal page faults.

Requirements

Version

Available in Windows XP and later versions of the Windows operating systems.

Header

Video.h (include Video.h)

Library

Videoprt.lib

DLL

Videoprt.sys

IRQL

DISPATCH_LEVEL

See also

VideoPortAcquireSpinLockAtDpcLevel
VideoPortAcquireSpinLock

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.