aboutsummaryrefslogtreecommitdiff
path: root/include/sg_cmds_extra.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2013-08-05 19:55:45 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2013-08-05 19:55:45 +0000
commit070138c9d60d9b70dc809e1a200af6e7d15d8a4a (patch)
tree89ec3a439d41a5f3e8b4bc4aa594f3696815de8c /include/sg_cmds_extra.h
parent88732e65ad3158fb372c2077ea47ba3016f5cb17 (diff)
downloadsg3_utils-070138c9d60d9b70dc809e1a200af6e7d15d8a4a.tar.gz
improve 3 party copy library support; add new examples sg_tst_excl and sg_tst_excl2
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@504 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_cmds_extra.h')
-rw-r--r--include/sg_cmds_extra.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h
index d06e5d05..b5cfe750 100644
--- a/include/sg_cmds_extra.h
+++ b/include/sg_cmds_extra.h
@@ -292,6 +292,18 @@ extern int sg_ll_receive_copy_results(int sg_fd, int sa, int list_id,
extern int sg_ll_extended_copy(int sg_fd, void * paramp, int param_len,
int noisy, int verbose);
+/* Handles various service actions associated with opcode 0x83 which is
+ * called THIRD PARTY COPY OUT. These include the EXTENDED COPY(LID4) and
+ * WRITE USING TOKEN commands. Return of 0 -> success,
+ * SG_LIB_CAT_INVALID_OP -> opcode 0x83 not supported,
+ * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_UNIT_ATTENTION,
+ * SG_LIB_CAT_NOT_READY -> device not ready, SG_LIB_CAT_ABORTED_COMMAND,
+ * -1 -> other failure */
+extern int sg_ll_3party_copy_out(int sg_fd, int sa, unsigned int list_id,
+ int group_num, int timeout_secs,
+ void * paramp, int param_len, int noisy,
+ int verbose);
+
#ifdef __cplusplus
}
#endif