'\" t .\" Title: scsi_execute .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SCSI_EXECUTE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" scsi_execute \- insert request and wait for the result .SH "SYNOPSIS" .HP \w'int\ scsi_execute('u .BI "int scsi_execute(struct\ scsi_device\ *\ " "sdev" ", const\ unsigned\ char\ *\ " "cmd" ", int\ " "data_direction" ", void\ *\ " "buffer" ", unsigned\ " "bufflen" ", unsigned\ char\ *\ " "sense" ", int\ " "timeout" ", int\ " "retries" ", u64\ " "flags" ", int\ *\ " "resid" ");" .SH "ARGUMENTS" .PP \fIsdev\fR .RS 4 scsi device .RE .PP \fIcmd\fR .RS 4 scsi command .RE .PP \fIdata_direction\fR .RS 4 data direction .RE .PP \fIbuffer\fR .RS 4 data buffer .RE .PP \fIbufflen\fR .RS 4 len of buffer .RE .PP \fIsense\fR .RS 4 optional sense buffer .RE .PP \fItimeout\fR .RS 4 request timeout in seconds .RE .PP \fIretries\fR .RS 4 number of times to retry request .RE .PP \fIflags\fR .RS 4 or into request flags; .RE .PP \fIresid\fR .RS 4 optional residual length .RE .SH "DESCRIPTION" .PP returns the req\->errors value which is the scsi_cmnd result field\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br