---
name: "iscsi_session_persistent_port_get"
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_session_persistent_port_get"
---

# iscsi\_session\_persistent\_port\_get(3)

Retrieve iSCSI target persistent port of specified session

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- se

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

## 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

int32\_t. -1 if not supported.
