SCSI_EXECUTE(9) | SCSI mid layer | SCSI_EXECUTE(9) |
NAME¶
scsi_execute - insert request and wait for the result
SYNOPSIS¶
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);
ARGUMENTS¶
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
DESCRIPTION¶
Returns the scsi_cmnd result field if a command was executed, or a negative Linux error code if we didn't get that far.
AUTHORS¶
James Bottomley <James.Bottomley@hansenpartnership.com>
Rob Landley <rob@landley.net>
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |