.\" 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 "DC395X_QUEUE_COMMAND" "" "06 October 2005" "" "" .SH NAME dc395x_queue_command \- queue scsi command passed from the mid .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int dc395x_queue_command (Scsi_Cmnd * \fIcmd\fB, void (*\fIdone\fB) Scsi_Cmnd *); \fR .SH "ARGUMENTS" .TP \fB\fIcmd\fB\fR pointer to scsi command object .TP \fB\fIdone\fB\fR function pointer to be invoked on completion .SH "DESCRIPTION" .PP Returns 1 if the adapter (host) is busy, else returns 0. One reason for an adapter to be busy is that the number of outstanding queued commands is already equal to .SH "DESCRIPTION" .PP Returns 1 if the adapter (host) is busy, else returns 0. One reason for an adapter to be busy is that the number of outstanding queued commands is already equal to .SH "STRUCT SCSI_HOST" .PP :can_queue . .SH "REQUIRED" .PP if struct Scsi_Host::can_queue is ever non-zero then this function is required. .SH "LOCKS" .PP struct Scsi_Host::host_lock held on entry (with ``irqsave'') and is expected to be held on return.