diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-12-04 00:24:39 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 12:24:24 -0500 |
commit | f4f4e47e4af6b02dd1c425b931c65d0165356e33 (patch) | |
tree | 1bca97ce56703d7a101674cf6bf0d28576cf7201 /include/scsi/scsi_device.h | |
parent | a528ab7a324f1dbb3598ae0ecd238ab7dd974294 (diff) |
[SCSI] add residual argument to scsi_execute and scsi_execute_req
scsi_execute() and scsi_execute_req() discard the residual length
information. Some callers need it. This adds residual argument
(optional) to scsi_execute and scsi_execute_req.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/scsi_device.h')
-rw-r--r-- | include/scsi/scsi_device.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 2a1c1419994d..01a4c58f8bad 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -365,10 +365,11 @@ extern int scsi_is_target_device(const struct device *); | |||
365 | extern int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, | 365 | extern int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, |
366 | int data_direction, void *buffer, unsigned bufflen, | 366 | int data_direction, void *buffer, unsigned bufflen, |
367 | unsigned char *sense, int timeout, int retries, | 367 | unsigned char *sense, int timeout, int retries, |
368 | int flag); | 368 | int flag, int *resid); |
369 | extern int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, | 369 | extern int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, |
370 | int data_direction, void *buffer, unsigned bufflen, | 370 | int data_direction, void *buffer, unsigned bufflen, |
371 | struct scsi_sense_hdr *, int timeout, int retries); | 371 | struct scsi_sense_hdr *, int timeout, int retries, |
372 | int *resid); | ||
372 | extern int scsi_execute_async(struct scsi_device *sdev, | 373 | extern int scsi_execute_async(struct scsi_device *sdev, |
373 | const unsigned char *cmd, int cmd_len, int data_direction, | 374 | const unsigned char *cmd, int cmd_len, int data_direction, |
374 | void *buffer, unsigned bufflen, int use_sg, | 375 | void *buffer, unsigned bufflen, int use_sg, |