VideoPortAcquireSpinLock - NtDoc

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

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

NtDoc

No description available.

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

VideoPortAcquireSpinLock function

Description

The VideoPortAcquireSpinLock function obtains the specified spin lock.

Parameters

HwDeviceExtension [in, out]

Pointer to the miniport driver's device extension.

SpinLock [in]

Pointer to a memory location that contains the spin lock.

OldIrql [out]

Pointer to a memory location that will receive the current IRQL.

Return value

None

Remarks

The current IRQL is saved in OldIrql. Then, the current IRQL is reset to DISPATCH_LEVEL, and the specified spin lock is acquired.

The OldIrql value must be specified when the spin lock is released with VideoPortReleaseSpinLock.

Spin locks can cause serious problems if not used judiciously. In particular, no deadlock protection is performed and dispatching is disabled while the spin lock is held. Therefore:

See also

VideoPortAcquireSpinLockAtDpcLevel

VideoPortReleaseSpinLock