interrupt Routine

The interrupt routine is called whenever the adapter posts an interrupt.

When this occurs, the interrupt routine will find the scsi_buf corresponding to this interrupt. The buffer for the scsi_buf will be unmapped from DMA. If an error occurred, the status_validity, scsi_status, and adapter_status fields will be set accordingly. The bufstruct.b_resid field will be set with the number of nontransferred bytes. The interrupt handler then runs the iodone kernel service against the scsi_buf, which will send the scsi_buf back to the device driver which originated it.