Man page - iscsi_iface_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)
Package: libopeniscsiusr-dev
apt-get install libopeniscsiusr-dev
apt-get install libopeniscsiusr-dev
Manuals in package:
Documentations in package:
Manual
| iscsi_iface_get(3) | API Manual | iscsi_iface_get(3) |
NAME
iscsi_iface_get - Retrieve specified iSCSI interface.
SYNOPSIS
int iscsi_iface_get (struct iscsi_context *ctx, const char *iface_name, struct iscsi_iface **iface);
ARGUMENTS
- ctx
- Pointer of 'struct iscsi_context'. If this pointer is NULL, your program will be terminated by assert.
- iface_name
- String. Name of iSCSI interface. Also the file name of configuration file "/etc/iscsi/iface/<iface_name>". If this pointer is NULL or empty string, your program will be terminated by assert.
- iface
- Output pointer of 'struct iscsi_iface'. Its memory should be freed by iscsi_iface_free. If this pointer is NULL, your program will be terminated by assert.
DESCRIPTION
Retrieves specified iSCSI interfaces by reading configuration from "/etc/iscsi/iface/<iface_name>". To generate iSCSI interface configuration when new card installed, please use iscsi_default_iface_setup. Illegal configuration file will be treated as error LIBISCSI_ERR_IDBM. Configuration file not found will be treated as error LIBISCSI_ERR_INVAL.
RETURN
int. Valid error codes are:
* LIBISCSI_OK
* LIBISCSI_ERR_BUG
* LIBISCSI_ERR_NOMEM
* LIBISCSI_ERR_ACCESS
* LIBISCSI_ERR_SYSFS_LOOKUP
* LIBISCSI_ERR_IDBM
Error number could be converted to string by iscsi_strerror.
| iscsi_iface_get | March 2026 |