- Minor optimization

- New member target_name added to struct scst_user_sess
 - Docs updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@634 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-01-15 18:50:43 +00:00
parent 5a9ff63133
commit 7a4e9129fc
7 changed files with 90 additions and 45 deletions
+9 -6
View File
@@ -206,10 +206,10 @@ which is defined as the following:
struct scst_user_get_cmd
{
uint64_t preply;
uint32_t cmd_h;
uint32_t subcode;
union {
uint64_t preply;
struct scst_user_sess sess;
struct scst_user_scsi_cmd_parse parse_cmd;
struct scst_user_scsi_cmd_alloc_mem alloc_cmd;
@@ -222,15 +222,15 @@ struct scst_user_get_cmd
where:
- preply - pointer to the reply data or, if 0, there is no reply. See
SCST_USER_REPLY_CMD for description of struct scst_user_reply_cmd
fields
- cmd_h - command handle used to identify the command in the reply.
- subcode - subcommand code, see 4.1 below
Union contains command's specific payload.
- preply - pointer to the reply data or, if 0, there is no reply. See
SCST_USER_REPLY_CMD for description of struct scst_user_reply_cmd
fields
Other union members contain command's specific payload.
For all received subcommands the user space device handler shall call
SCST_USER_REPLY_AND_GET_CMD or SCST_USER_REPLY_CMD function to tell SCST
@@ -254,6 +254,7 @@ struct scst_user_sess
uint16_t threads_num;
uint8_t rd_only;
char initiator_name[SCST_MAX_NAME];
char target_name[SCST_MAX_NAME];
},
where:
@@ -270,6 +271,8 @@ where:
- initiator_name - name of the remote initiator, which initiated this
session
- target_name - name of the target, to which this session belongs
When SCST_USER_ATTACH_SESS is returned, it is guaranteed that there are
no other commands are being executed or pending.