Previous Next

Handling SRB_FUNCTION_RESET_DEVICE

If the HBA has the ability to reset a target device, as indicated when HwScsiFindAdapter sets up the PORT_CONFIGURATION_INFORMATION, the port driver requests a device reset when an uncompleted request times out.

The system port driver calls the miniport’s HwScsiStartIo routine with an SRB in which the Function member is set to SRB_FUNCTION_RESET_DEVICE. The miniport is responsible for completing any requests that are uncompleted on the device when it receives a reset-device request.

If the device reset fails or times out, or if the timeout occurs while the port driver is waiting for a NextRequest notification, the port driver calls HwScsiResetBus.