iscsi\_session\_persistent\_port\_get(3) API Manual iscsi\_session\_persistent\_port\_get(3)

# [NAME](#NAME)

iscsi\_session\_persistent\_port\_get - Retrieve iSCSI target persistent port of specified session

# [SYNOPSIS](#SYNOPSIS)

**int32\_t iscsi\_session\_persistent\_port\_get** **(struct iscsi\_session \*se);**

# [ARGUMENTS](#ARGUMENTS)

[se](#se)

Pointer of 'struct iscsi\_session'. If this pointer is NULL, your program will be terminated by assert.

# [DESCRIPTION](#DESCRIPTION)

Retrieve the iSCSI target persistent port of specified iSCSI session. The 'persistent port' is the network port where iSCSI initiator send initial request. When iSCSI redirection in use, this port might not be the network port used for actual iSCSI transaction. Please use \`**iscsi\_session\_port\_get**\` for target network address of iSCSI transaction.

# [RETURN](#RETURN)

int32\_t. -1 if not supported.

iscsi\_session\_persistent\_port\_get October 2026

---

Document: iscsi_session_persistent_port_get(3) from open-iscsi 2.1.13-r3 (Chainguard OS)
Source: https://github.com/open-iscsi/open-iscsi
