DOKK / manpages / debian 12 / libopeniscsiusr-dev / iscsi_session_port_get.3.en
iscsi_session_port_get(3) API Manual iscsi_session_port_get(3)

iscsi_session_port_get - Retrieve iSCSI target port of specified session

int32_t iscsi_session_port_get (struct iscsi_session *se);

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

Retrieve the iSCSI target port of specified iSCSI session.

int32_t. -1 if not supported.

iscsi_session_port_get October 2022