ExInitializePushLock - NtDoc

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

VOID ExInitializePushLock(
  [Out] PEX_PUSH_LOCK PushLock
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-exinitializepushlock)

ExInitializePushLock function

Description

Initializes a push lock variable.

Parameters

PushLock [Out]

Pointer to the caller-supplied storage, which must be at least the value of sizeof(EX_PUSH_LOCK), for the push lock variable to be initialized. The storage must be 4-byte aligned on 32-bit platforms, and 8-byte aligned on 64-bit platforms.

Remarks

Push locks are similar to ERESOURCE structures (also called "resources") in the following ways:

Push locks offer the following advantages over ERESOURCE structures:

Push locks have the following disadvantages when compared with ERESOURCE structures:

To acquire or release a push lock for exclusive access, call ExAcquirePushLockExclusive or ExReleasePushLockExclusive, respectively.

To acquire or release a push lock for shared access, call ExAcquirePushLockShared or ExReleasePushLockShared, respectively.

See also