.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SCSI_ADD_TIMER" "" "06 October 2005" "" "" .SH NAME scsi_add_timer \- Start timeout timer for a single scsi command. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void scsi_add_timer (struct scsi_cmnd * \fIscmd\fB, int \fItimeout\fB, void (*\fIcomplete\fB) struct scsi_cmnd *); \fR .SH "ARGUMENTS" .TP \fB\fIscmd\fB\fR scsi command that is about to start running. .TP \fB\fItimeout\fB\fR amount of time to allow this command to run. .TP \fB\fIcomplete\fB\fR timeout function to call if timer isn't canceled. .SH "NOTES" .PP This should be turned into an inline function. Each scsi command has its own timer, and as it is added to the queue, we set up the timer. When the command completes, we cancel the timer.