---
name: "iscsi_create_conn"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/iscsi_create_conn"
---

# iscsi\_create\_conn(9)

create iscsi class connection

## NAME

iscsi\_create\_conn - create iscsi class connection

## SYNOPSIS

**struct iscsi\_cls\_conn \* iscsi\_create\_conn(struct iscsi\_cls\_session \*** *session***, int** *dd\_size***, uint32\_t** *cid***);**

## ARGUMENTS

*session*

iscsi cls session

*dd\_size*

private driver data size

*cid*

connection id

## DESCRIPTION

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.

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.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
