Add a new function to create a scsi_task using an existing CDB

This commit is contained in:
Ronnie Sahlberg
2013-08-04 13:12:13 -07:00
parent 06eab264f6
commit 6041dcd136
4 changed files with 29 additions and 0 deletions

View File

@@ -292,6 +292,13 @@ struct scsi_task {
struct scsi_iovector iovector_out;
};
/* Create a task using a pre-built CDB which can later be passed to
iscsi_scsi_command_[a]sync()
*/
EXTERN struct scsi_task *scsi_create_task(int cdb_size, unsigned char *cdb,
int xfer_dir, int expxferlen);
/* This function will free a scsi task structure.
You may NOT cancel a task until the callback has been invoked
and the command has completed on the transport layer.