|
|
intr( ) is the SCSI peripheral driver's callback function. It is called by the host adapter driver's intr( ) routine at interrupt time to either inform the user-level process that the I/O has completed or to inform a sleeping process that a free request block is available. If the SCSI host adapter queues requests, the intr( ) routine attempts to dispatch another request block to the device using the start( ) routine.
Syntax:
#include "sys/scsi.h"int xxintr(req_p) REQ_IO *req_p;
xxtab
.
In both cases, call iodone
and then clear the request block.