aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_transport_iscsi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi/scsi_transport_iscsi.h')
-rw-r--r--include/scsi/scsi_transport_iscsi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h
index 2e3cb37af047..53493d591355 100644
--- a/include/scsi/scsi_transport_iscsi.h
+++ b/include/scsi/scsi_transport_iscsi.h
@@ -199,6 +199,9 @@ struct iscsi_cls_session {
199#define iscsi_session_to_shost(_session) \ 199#define iscsi_session_to_shost(_session) \
200 dev_to_shost(_session->dev.parent) 200 dev_to_shost(_session->dev.parent)
201 201
202#define starget_to_session(_stgt) \
203 iscsi_dev_to_session(_stgt->dev.parent)
204
202struct iscsi_host { 205struct iscsi_host {
203 int next_target_id; 206 int next_target_id;
204 struct list_head sessions; 207 struct list_head sessions;
@@ -208,8 +211,13 @@ struct iscsi_host {
208/* 211/*
209 * session and connection functions that can be used by HW iSCSI LLDs 212 * session and connection functions that can be used by HW iSCSI LLDs
210 */ 213 */
214extern struct iscsi_cls_session *iscsi_alloc_session(struct Scsi_Host *shost,
215 struct iscsi_transport *transport);
216extern int iscsi_add_session(struct iscsi_cls_session *session);
211extern struct iscsi_cls_session *iscsi_create_session(struct Scsi_Host *shost, 217extern struct iscsi_cls_session *iscsi_create_session(struct Scsi_Host *shost,
212 struct iscsi_transport *t); 218 struct iscsi_transport *t);
219extern void iscsi_remove_session(struct iscsi_cls_session *session);
220extern void iscsi_free_session(struct iscsi_cls_session *session);
213extern int iscsi_destroy_session(struct iscsi_cls_session *session); 221extern int iscsi_destroy_session(struct iscsi_cls_session *session);
214extern struct iscsi_cls_conn *iscsi_create_conn(struct iscsi_cls_session *sess, 222extern struct iscsi_cls_conn *iscsi_create_conn(struct iscsi_cls_session *sess,
215 uint32_t cid); 223 uint32_t cid);