.\" 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 "MEGA_BUILD_CMD" "" "06 October 2005" "" ""
.SH NAME
mega_build_cmd \-
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
scb_t * mega_build_cmd (adapter_t * \fIadapter\fB, Scsi_Cmnd * \fIcmd\fB, int * \fIbusy\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIadapter\fB\fR
-- undescribed --
.TP
\fB\fIcmd\fB\fR
-- undescribed --
.TP
\fB\fIbusy\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
\fIadapter\fR - pointer to our soft state
\fIcmd\fR - Prepare using this scsi command
\fIbusy\fR - busy flag if no resources
.PP
Prepares a command and scatter gather list for the controller. This routine
also finds out if the commands is intended for a logical drive or a
physical device and prepares the controller command accordingly.
.PP
We also re-order the logical drives and physical devices based on their
boot settings.