1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>iscsi_create_conn</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="SCSI Interfaces Guide"><link rel="up" href="Transport_classes.html#iSCSI_transport" title="iSCSI transport class"><link rel="prev" href="API-iscsi-destroy-session.html" title="iscsi_destroy_session"><link rel="next" href="API-iscsi-destroy-conn.html" title="iscsi_destroy_conn"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">iscsi_create_conn</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-iscsi-destroy-session.html">Prev</a> </td><th width="60%" align="center">iSCSI transport class</th><td width="20%" align="right"> <a accesskey="n" href="API-iscsi-destroy-conn.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-iscsi-create-conn"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>iscsi_create_conn — 2 create iscsi class connection 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct iscsi_cls_conn * <b class="fsfunc">iscsi_create_conn </b>(</code></td><td>struct iscsi_cls_session * <var class="pdparam">session</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">dd_size</var>, </td></tr><tr><td> </td><td>uint32_t <var class="pdparam">cid</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1124563580"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session</code></em></span></dt><dd><p> 4 iscsi cls session 5 </p></dd><dt><span class="term"><em class="parameter"><code>dd_size</code></em></span></dt><dd><p> 6 private driver data size 7 </p></dd><dt><span class="term"><em class="parameter"><code>cid</code></em></span></dt><dd><p> 8 connection id 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124567220"></a><h2>Description</h2><p> 10 This can be called from a LLD or iscsi_transport. The connection 11 is child of the session so cid must be unique for all connections 12 on the session. 13 </p><p> 14 15 Since we do not support MCS, cid will normally be zero. In some cases 16 for software iscsi we could be trying to preallocate a connection struct 17 in which case there could be two connection structs and cid would be 18 non-zero. 19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-iscsi-destroy-session.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="Transport_classes.html#iSCSI_transport">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-iscsi-destroy-conn.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">iscsi_destroy_session</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">iscsi_destroy_conn</span></td></tr></table></div></body></html> 20