iscsi\_session\_tpgt\_get(3) API Manual iscsi\_session\_tpgt\_get(3)

# [NAME](#NAME)

iscsi\_session\_tpgt\_get - Retrieve target portal group tag of specified session

# [SYNOPSIS](#SYNOPSIS)

**int32\_t iscsi\_session\_tpgt\_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 target portal group tag of specified iSCSI session.

The target portal group tag is a value that uniquely identifies a portal group within an iSCSI target node. This key carries the value of the tag of the portal group that is servicing the Login request. The iSCSI target returns this key to the initiator in the Login Response PDU to the first Login Request PDU that has the C bit set to 0 when TargetName is given by the initiator.

# [RETURN](#RETURN)

int32\_t. -1 if not supported.

iscsi\_session\_tpgt\_get October 2026

---

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