scsi_execute — insert request and wait for the result
int scsi_execute ( | struct scsi_device * sdev, |
| const unsigned char * cmd, | |
| int data_direction, | |
| void * buffer, | |
| unsigned bufflen, | |
| unsigned char * sense, | |
| struct scsi_sense_hdr * sshdr, | |
| int timeout, | |
| int retries, | |
| u64 flags, | |
| req_flags_t rq_flags, | |
int * resid); |
struct scsi_device * sdevscsi device
const unsigned char * cmdscsi command
int data_directiondata direction
void * bufferdata buffer
unsigned bufflenlen of buffer
unsigned char * senseoptional sense buffer
struct scsi_sense_hdr * sshdroptional decoded sense header
int timeoutrequest timeout in seconds
int retriesnumber of times to retry request
u64 flagsflags for ->cmd_flags
req_flags_t rq_flagsflags for ->rq_flags
int * residoptional residual length