'\" t .\" Title: iscsi_create_conn .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "ISCSI_CREATE_CONN" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" iscsi_create_conn \- create iscsi class connection .SH "SYNOPSIS" .HP \w'struct\ iscsi_cls_conn\ *\ iscsi_create_conn('u .BI "struct iscsi_cls_conn * iscsi_create_conn(struct\ iscsi_cls_session\ *\ " "session" ", int\ " "dd_size" ", uint32_t\ " "cid" ");" .SH "ARGUMENTS" .PP \fIsession\fR .RS 4 iscsi cls session .RE .PP \fIdd_size\fR .RS 4 private driver data size .RE .PP \fIcid\fR .RS 4 connection id .RE .SH "DESCRIPTION" .PP This can be called from a LLD or iscsi_transport\&. The connection is child of the session so cid must be unique for all connections on the session\&. .PP Since we do not support MCS, cid will normally be zero\&. In some cases for software iscsi we could be trying to preallocate a connection struct in which case there could be two connection structs and cid would be non\-zero\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br