Expand Minimize

ExReinitializeResourceLite routine

The ExReinitializeResourceLite routine reinitializes an existing resource variable.

Syntax


NTSTATUS ExReinitializeResourceLite(
  _Inout_  PERESOURCE Resource
);

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.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

HwStorPortProhibitedDDIs

See also

ExAcquireResourceExclusiveLite
ExAcquireResourceSharedLite
ExInitializeResourceLite
ExDeleteResourceLite
ExAcquireSharedStarveExclusive
ExAcquireSharedWaitForExclusive
ExConvertExclusiveToSharedLite
ExIsResourceAcquiredExclusiveLite
ExIsResourceAcquiredSharedLite
ExReleaseResourceForThreadLite

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft