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

iscsi_iface_port_speed_get - Retrieve network port speed of specified iSCSI interface

const char * iscsi_iface_port_speed_get (struct iscsi_iface *iface);

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

Retrieve the network port speed of specified iSCSI interface. Returned string format is '[0-9]+ [MGT]bps', example: '10 Mbps' or '10 Gbps'.

const char *. Set to "unknown" if unknown. No need to free this memory, the resources will get freed by iscsi_session_free or iscsi_sessions_free.

iscsi_iface_port_speed_get October 2022