IoReuseIrp - NtDoc

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

VOID IoReuseIrp(
  [in, out] PIRP     Irp,
  [in]      NTSTATUS Iostatus
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IoReuseIrp function

Description

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

Parameters

Irp [in, out]

Pointer to the IRP to be reinitialized for reuse.

Iostatus [in]

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

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.

See also

IRP

IoAllocateIrp

IoInitializeIrp

IoMakeAssociatedIrp