---
name: "iscsi_iface_port_state_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_iface_port_state_get"
---

# iscsi\_iface\_port\_state\_get(3)

Retrieve network port state of specified iSCSI interface

## NAME

iscsi\_iface\_port\_state\_get - Retrieve network port state of specified iSCSI interface

## SYNOPSIS

**const char \* iscsi\_iface\_port\_state\_get** **(struct iscsi\_iface \****iface***);**

## ARGUMENTS

- iface

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

## DESCRIPTION

Retrieve the network port state of specified iSCSI interface.

## RETURN

const char \*. Possible values are :

\* "LINK\_UP"

\* "LINK\_DOWN"

\* "unknown"

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