PIO_STACK_LOCATION
IoGetNextIrpStackLocation(
IN PIRP Irp
);
IoGetNextIrpStackLocation gives a higher level driver access to the next-lower driver’s I/O stack location in an IRP so the caller can set it up for the lower driver.
Parameters
Irp
Points to the IRP.
Return Value
IoGetNextIrpStackLocation returns a pointer to the next-lower-level driver’s I/O stack location in the given IRP.
Comments
Each driver that passes IRPs on to lower drivers must call IoGetNextIrpStackLocation so it can set up the stack location for the next-lower driver and call IoCallDriver with the IRP.
Callers of IoGetNextIrpStackLocation must be running at IRQL <= DISPATCH_LEVEL.
See Also
IO_STACK_LOCATION, IoCallDriver, IoGetCurrentIrpStackLocation, IoSetNextIrpStackLocation