---
name: "iscsi_session_target_name_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_target_name_get"
---

# iscsi\_session\_target\_name\_get(3)

Retrieve iSCSI target name of specified session

## NAME

iscsi\_session\_target\_name\_get - Retrieve iSCSI target name of specified session

## SYNOPSIS

**const char \* iscsi\_session\_target\_name\_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 name of specified iSCSI session. The iSCSI Target Name specifies the worldwide unique name of the target.

## RETURN

const char \*. No need to free this memory, the resources will get freed by **iscsi\_session\_free** or **iscsi\_sessions\_free**.
