VideoPortReleaseSpinLock function

The VideoPortReleaseSpinLock function releases ownership of a given spin lock and restores the original IRQL at which the caller was running.

Syntax

VOID VideoPortReleaseSpinLock(
  _In_    PVOID      HwDeviceExtension,
  _Inout_ PSPIN_LOCK SpinLock,
  _In_    UCHAR      NewIrql
);

Parameters

HwDeviceExtension

Pointer to the miniport driver's device extension.

Arg1

NewIrql

Specifies the IRQL to be restored.

Return Value

None

Remarks

This call is the inverse of VideoPortAcquireSpinLock. The NewIrql value must be the same as the value pointed to by OldIrql when VideoPortAcquireSpinLock returned.

Callers of VideoPortReleaseSpinLock must be running at IRQL = DISPATCH_LEVEL. On return from this routine, IRQL is restored to the NewIrql value.

Requirements

   
Windows version Available in Windows XP and later versions of the Windows operating systems. Available in Windows XP and later versions of the Windows operating systems.
Target Platform Desktop
Header video.h (include Video.h)
Library Videoprt.lib
DLL Videoprt.sys
IRQL DISPATCH_LEVEL (see Remarks section)

See Also

VideoPortAcquireSpinLock

Send comments about this topic to Microsoft