.\" 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 "MAP_SG_DATA" "9" "09 October 2005" "" ""
.SH NAME
map_sg_data \- Maps dma for a scatterlist and initializes decriptor fields
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int map_sg_data (struct scsi_cmnd * \fIcmd\fB, struct srp_cmd * \fIsrp_cmd\fB, struct device * \fIdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcmd\fB\fR
Scsi_Cmnd with the scatterlist
.TP
\fB\fIsrp_cmd\fB\fR
srp_cmd that contains the memory descriptor
.TP
\fB\fIdev\fB\fR
device for which to map dma memory
.SH "DESCRIPTION"
.PP
Called by \fBmap_data_for_srp_cmd\fR when building srp cmd from scsi cmd.
Returns 1 on success.