The IoReuseIrp routine reinitializes an IRP so that it can be reused.
VOID
IoReuseIrp(
IN OUT PIRP Irp,
IN NTSTATUS Status
);
None
Declared in ntddk.h. Include ntddk.h.
Drivers for Windows 2000 and later operating systems 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.
Callers of IoReuseIrp must be running at IRQL <= DISPATCH_LEVEL.