---
name: "iscsi_default_iface_setup"
section: "3"
platform: "linux"
package: "open-iscsi"
version: "2.1.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/iscsi_default_iface_setup"
---

# iscsi\_default\_iface\_setup(3)

Setup default iSCSI interfaces.

## NAME

iscsi\_default\_iface\_setup - Setup default iSCSI interfaces.

## SYNOPSIS

**int iscsi\_default\_iface\_setup** **(struct iscsi\_context \****ctx***);**

## ARGUMENTS

- ctx

  Pointer of 'struct iscsi\_context'.

## DESCRIPTION

Setup default iSCSI interfaces for iSCSI TCP, iSER and iSCSI hardware offload cards. It is required after new iSCSI hardware offload card installed.

Below kernel modules will be loaded when required by this function:

\* cxgb3i \* cxgb4i \* bnx2i

It will also create configuration files for iSCSI hardware offload cards in /etc/iscsi/ifaces/\<iface\_name\>.

## RETURN

int. Valid error codes are:

\* LIBISCSI\_OK

\* LIBISCSI\_ERR\_BUG

\* LIBISCSI\_ERR\_NOMEM

\* LIBISCSI\_ERR\_ACCESS

\* LIBISCSI\_ERR\_SYSFS\_LOOKUP

\* LIBISCSI\_ERR\_IDBM

Error number could be converted to string by **iscsi\_strerror**.
