Expand Minimize

IoReuseIrp routine

The IoReuseIrp routine reinitializes an IRP so that it can be reused.

Syntax


VOID IoReuseIrp(
  _Inout_  PIRP Irp,
  _In_     NTSTATUS Status
);

Parameters

Irp [in, out]

Pointer to the IRP to be reinitialized for reuse.

Status [in]

Specifies the NTSTATUS value to be set in the IRP after it is reinitialized.

Return value

None

Remarks

Drivers for Windows 2000 and later versions of Windows use IoReuseIrp to reuse an IRP.

A driver should use IoReuseIrp only on IRPs it previously allocated either as raw memory or with IoAllocateIrp. In particular, drivers should not use this routine for IRPs created with IoMakeAssociatedIrp, IoBuildSynchronousFsdRequest, IoBuildAsynchronousFsdRequest, or IoBuildDeviceIoControlRequest.

See Reusing IRPs for more details on how to reuse IRPs.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Ntddk.h)

Library

Ntoskrnl.lib

IRQL

<=DISPATCH_LEVEL

DDI compliance rules

IoReuseIrp, IoReuseIrp2, HwStorPortProhibitedDDIs

See also

IoInitializeIrp
IoAllocateIrp
IoMakeAssociatedIrp
IRP

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft