Man page - iscsi_ifaces_get(3)
Packages contas this manual
- iscsi_session_free(3)
- libopeniscsiusr.h(3)
- iscsi_log_priority_str(3)
- iscsi_iface_print_config(3)
- iscsi_context_log_func_set(3)
- iscsi_nodes_get(3)
- iscsi_iface_port_speed_get(3)
- iscsi_session_persistent_port_get(3)
- iscsi_node_target_name_get(3)
- iscsi_default_iface_setup(3)
- iscsi_iface_get(3)
- iscsi_session_tgt_reset_tmo_get(3)
- iscsi_session_username_in_get(3)
- iscsi_node_dump_config(3)
- iscsi_node_portal_get(3)
- iscsi_context_free(3)
- iscsi_session_lu_reset_tmo_get(3)
- iscsi_context_new(3)
- iscsi_node_tpgt_get(3)
- iscsi_session_password_get(3)
- iscsi_session_get(3)
- iscsi_session_recovery_tmo_get(3)
- iscsi_strerror(3)
- iscsi_iface_name_get(3)
- iscsi_session_username_get(3)
- iscsi_context_log_priority_get(3)
- iscsi_sessions_get(3)
- iscsi_session_abort_tmo_get(3)
- iscsi_node_iface_name_get(3)
- iscsi_session_iface_get(3)
- iscsi_context_userdata_set(3)
- iscsi_is_default_iface(3)
- iscsi_context_userdata_get(3)
- iscsi_iface_ipaddress_get(3)
- iscsi_ifaces_free(3)
- iscsi_nodes_free(3)
- iscsi_sessions_free(3)
- iscsi_session_sid_get(3)
- iscsi_session_port_get(3)
- iscsi_iface_port_state_get(3)
- iscsi_node_conn_address_get(3)
- iscsi_iface_free(3)
- iscsi_iface_netdev_get(3)
- iscsi_session_persistent_address_get(3)
- iscsi_node_conn_is_ipv6(3)
- iscsi_node_print_config(3)
- iscsi_session_tpgt_get(3)
- iscsi_ifaces_get(3)
- iscsi_session_password_in_get(3)
- iscsi_session_address_get(3)
- iscsi_iface_transport_name_get(3)
- iscsi_iface_dump_config(3)
- iscsi_node_conn_port_get(3)
- iscsi_session_target_name_get(3)
- iscsi_iface_hwaddress_get(3)
- iscsi_context_log_priority_set(3)
- iscsi_iface_iname_get(3)
apt-get install libopeniscsiusr-dev
Manual
| iscsi_ifaces_get(3) | API Manual | iscsi_ifaces_get(3) |
NAME
iscsi_ifaces_get - Retrieve all iSCSI interfaces.
SYNOPSIS
int iscsi_ifaces_get (struct iscsi_context *ctx, struct iscsi_iface ***ifaces, uint32_t *iface_count);
ARGUMENTS
- ctx
- Pointer of 'struct iscsi_context'. If this pointer is NULL, your program will be terminated by assert.
- ifaces
- Output pointer of 'struct iscsi_iface' pointer array. Its memory should be freed by iscsi_ifaces_free. If this pointer is NULL, your program will be terminated by assert.
- iface_count
- Output pointer of uint32_t. Will store the size of
DESCRIPTION
Retrieves all iSCSI interfaces. For the properties of 'struct iscsi_iface', please refer to the functions defined in 'libopeniscsiusr_iface.h' file. The returned results contains default iSCSI interfaces(iser and iscsi_tcp) and iSCSI interfaces configured in "/etc/iscsi/ifaces/". Illegal configuration file will be skipped and warned. To generate iSCSI interface configuration when new card installed, please use iscsi_default_iface_setup.
RETURN
int. Valid error codes are:
* LIBISCSI_OK
* LIBISCSI_ERR_BUG
* LIBISCSI_ERR_NOMEM
* LIBISCSI_ERR_ACCESS
* LIBISCSI_ERR_SYSFS_LOOKUP
Error number could be converted to string by iscsi_strerror.
| iscsi_ifaces_get | March 2026 |