Expand Minimize

ExReInitializeRundownProtection routine

The ExReInitializeRundownProtection routine reinitializes an EX_RUNDOWN_REF structure after the associated object is run down.

Syntax


VOID ExReInitializeRundownProtection(
  _Inout_ PEX_RUNDOWN_REF RunRef
);

Parameters

RunRef [in, out]

A pointer to an EX_RUNDOWN_REF structure that was initialized by a previous call to the ExInitializeRundownProtection routine. The run-down protection routines use this structure to track the run-down status of the associated shared object. This structure is opaque to drivers.

Return value

None.

Remarks

This routine is called by the driver that owns an object that resides in shared memory and that is accessed by other drivers.

ExReInitializeRundownProtection enables a previously used EX_RUNDOWN_REF structure to be associated with a new object, and initializes run-down protection on this object. After the ExReInitializeRundownProtection call, drivers can call ExAcquireRundownProtection to acquire run-down protection on the new object.

An ExReInitializeRundownProtection call must be preceded by a call to the ExWaitForRundownProtectionRelease routine that runs down the old object. Between the ExWaitForRundownProtectionRelease and ExReInitializeRundownProtection calls, the driver might call the ExRundownCompleted routine to indicate that the run down of the old object has completed.

On entry, the status information in the EX_RUNDOWN_REF structure must indicate that the old object was run down. Otherwise, ExReInitializeRundownProtection bug checks in checked builds.

For more information, see Run-Down Protection.

Requirements

Target platform

Universal

Version

Available starting with Windows XP.

Header

Wdm.h (include Wdm.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

ExAcquireRundownProtection
ExInitializeRundownProtection
ExRundownCompleted
ExWaitForRundownProtectionRelease
EX_RUNDOWN_REF

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft