summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormnc <mnc@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2006-07-10 23:16:41 +0000
committermnc <mnc@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2006-07-10 23:16:41 +0000
commit7b0a1cf7e44e6173e70cb6e4bac8c42579aa944c (patch)
treec44ee9e5d7f391f4c13882e7b72203b2df743962 /include
parent18e46a048129613e83b1315e079426100b3bfd8d (diff)
downloadopen-iscsi-7b0a1cf7e44e6173e70cb6e4bac8c42579aa944c.tar.gz
This patch adds or modifies the transport class functions used to notify userspace of session state events. We modify the session addition up event and add a destruction event to notify userspace of session creation, relogin and destruction. And we modify the conn error event to be sent by broadcast since multiple listeners may want to listen for it.
git-svn-id: svn://svn.berlios.de/open-iscsi@630 d7303112-9cec-0310-bdd2-e83a94d6c2b6
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_if.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/include/iscsi_if.h b/include/iscsi_if.h
index df7753e..30f374f 100644
--- a/include/iscsi_if.h
+++ b/include/iscsi_if.h
@@ -53,6 +53,7 @@ enum iscsi_uevent_e {
ISCSI_KEVENT_RECV_PDU = KEVENT_BASE + 1,
ISCSI_KEVENT_CONN_ERROR = KEVENT_BASE + 2,
ISCSI_KEVENT_IF_ERROR = KEVENT_BASE + 3,
+ ISCSI_KEVENT_DESTROY_SESSION = KEVENT_BASE + 4,
};
enum iscsi_tgt_dscvr {
@@ -157,27 +158,13 @@ struct iscsi_uevent {
uint32_t cid;
uint32_t error; /* enum iscsi_err */
} connerror;
+ struct msg_session_destroyed {
+ uint32_t host_no;
+ uint32_t sid;
+ } d_session;
struct msg_transport_connect_ret {
uint64_t handle;
} ep_connect_ret;
- struct msg_tgt_dscvr_ret {
- /*
- * session/connection pair used to reference
- * the connection to server
- */
- uint32_t sid;
- uint32_t cid;
- union {
- struct isns {
- /* port # for conn to iSNS server */
- uint16_t isns_port;
- /* listening port to receive SCNs */
- uint16_t scn_port;
- /* listening port to receive ESIs */
- uint16_t esi_port;
- } isns_attrib;
- } u;
- } tgt_dscvr_ret;
} r;
} __attribute__ ((aligned (sizeof(uint64_t))));