ExReinitializeResourceLite - NtDoc

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

NTSTATUS ExReinitializeResourceLite(
  [in, out] PERESOURCE Resource
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

ExReinitializeResourceLite function

Description

The ExReinitializeResourceLite routine reinitializes an existing resource variable.

Parameters

Resource [in, out]

A pointer to the caller-supplied resource variable to be reinitialized.

Return value

ExReinitializeResourceLite returns STATUS_SUCCESS.

Remarks

With a single call to ExReinitializeResource, a driver writer can replace three calls: one to ExDeleteResourceLite, another to ExAllocatePool, and a third to ExInitializeResourceLite. As contention for a resource variable increases, memory is dynamically allocated and attached to the resource in order to track this contention. As an optimization, ExReinitializeResourceLite retains and zeros this previously allocated memory.

The ERESOURCE structure is opaque; that is, the members are reserved for system use.

See also

ExAcquireResourceExclusiveLite

ExAcquireResourceSharedLite

ExAcquireSharedStarveExclusive

ExAcquireSharedWaitForExclusive

ExConvertExclusiveToSharedLite

ExDeleteResourceLite

ExInitializeResourceLite

ExIsResourceAcquiredExclusiveLite

ExIsResourceAcquiredSharedLite

ExReleaseResourceForThreadLite