1SCSI_EXECUTE(9) SCSI mid layer SCSI_EXECUTE(9)
2
3
4
6 scsi_execute - insert request and wait for the result
7
9 int scsi_execute(struct scsi_device * sdev, const unsigned char * cmd,
10 int data_direction, void * buffer, unsigned bufflen,
11 unsigned char * sense, int timeout, int retries,
12 u64 flags, int * resid);
13
15 sdev
16 scsi device
17
18 cmd
19 scsi command
20
21 data_direction
22 data direction
23
24 buffer
25 data buffer
26
27 bufflen
28 len of buffer
29
30 sense
31 optional sense buffer
32
33 timeout
34 request timeout in seconds
35
36 retries
37 number of times to retry request
38
39 flags
40 or into request flags;
41
42 resid
43 optional residual length
44
46 returns the req->errors value which is the scsi_cmnd result field.
47
49 James Bottomley <James.Bottomley@hansenpartnership.com>
50 Author.
51
52 Rob Landley <rob@landley.net>
53 Author.
54
56Kernel Hackers Manual 3.10 June 2019 SCSI_EXECUTE(9)