VideoPortReleaseDeviceLock - NtDoc

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

VIDEOPORT_API VOID VideoPortReleaseDeviceLock(
  [in] IN PVOID HwDeviceExtension
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

VideoPortReleaseDeviceLock function

Description

The VideoPortReleaseDeviceLock function releases the device lock acquired in a prior call to VideoPortAcquireDeviceLock.

Parameters

HwDeviceExtension [in]

Pointer to the miniport driver's device extension.

Return value

None

Remarks

Typically, the video port driver guarantees threaded synchronization into the miniport driver by using of a device lock. However, a miniport driver must perform its own synchronization when being accessed by a child device; that is, a miniport driver must perform synchronization in routines that it exposes through HwVidQueryInterface. The miniport driver does this by calling VideoPortAcquireDeviceLock to acquire the device lock maintained by the video port driver.

The miniport driver should call VideoPortReleaseDeviceLock to release the device lock as quickly as possible.

See also

HwVidQueryInterface

VideoPortAcquireDeviceLock