iscsi_iface_port_state_get(3)

Retrieve network port state of specified iSCSI interface

Section 3 libopeniscsiusr-dev bookworm source

Description

iscsi_iface_port_state_get

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.