Man page - iscsi_nodes_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_nodes_get(3) | API Manual | iscsi_nodes_get(3) |
NAME
iscsi_nodes_get - Retrieve all iSCSI nodes.
SYNOPSIS
int iscsi_nodes_get (struct iscsi_context *ctx, struct iscsi_node ***nodes, uint32_t *node_count);
ARGUMENTS
- ctx
- Pointer of 'struct iscsi_context'. If this pointer is NULL, your program will be terminated by assert.
- nodes
- Output pointer of 'struct iscsi_node' pointer array. Its memory should be freed by iscsi_nodes_free. If this pointer is NULL, your program will be terminated by assert.
- node_count
- Output pointer of uint32_t. Will store the size of
DESCRIPTION
Retrieves all iSCSI nodes. For the properties of 'struct iscsi_node', please refer to the functions defined in 'libopeniscsiusr_node.h' file. The returned results contains iSCSI nodes configured in "/etc/iscsi/nodes/". Illegal configuration file will be skipped and warned. The returned 'struct iscsi_node' pointer array is sorted by target name, connection address, connection port and interface.
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_nodes_get | March 2026 |