VideoPortReleaseSpinLockFromDpcLevel - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// video.h

VIDEOPORT_API VOID VideoPortReleaseSpinLockFromDpcLevel(
  [in]      PVOID      HwDeviceExtension,
  [in, out] PSPIN_LOCK SpinLock
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-video-videoportreleasespinlockfromdpclevel)

VideoPortReleaseSpinLockFromDpcLevel function

Description

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

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.

See also

VideoPortAcquireSpinLock

VideoPortAcquireSpinLockAtDpcLevel