mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
Merge r7404 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7661 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6862,6 +6862,21 @@ out:
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* scsi_execute - insert a SCSI request and wait for the result
|
||||
* @sdev: scsi device
|
||||
* @cmd: scsi command
|
||||
* @data_direction: data direction
|
||||
* @buffer: data buffer
|
||||
* @bufflen: length of buffer - DMA_TO_DEVICE, DMA_FROM_DEVICE or DMA_NONE
|
||||
* @sense: optional sense buffer
|
||||
* @timeout: request timeout in seconds
|
||||
* @retries: number of times to retry request
|
||||
* @flags: flags for ->cmd_flags, e.g. REQ_FAILFAST_DEV
|
||||
*
|
||||
* Returns the scsi_cmnd result field if a command was executed, or a negative
|
||||
* Linux error code if we didn't get that far.
|
||||
*/
|
||||
int scst_scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
|
||||
int data_direction, void *buffer, unsigned int bufflen,
|
||||
unsigned char *sense, int timeout, int retries, u64 flags)
|
||||
|
||||
Reference in New Issue
Block a user