Man page - iscsi_sessions_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_sessions_get(3) | API Manual | iscsi_sessions_get(3) |
NAME
iscsi_sessions_get - Retrieve all iSCSI sessions.
SYNOPSIS
int iscsi_sessions_get (struct iscsi_context *ctx, struct iscsi_session ***ses, uint32_t *se_count);
ARGUMENTS
- ctx
- Pointer of 'struct iscsi_context'. If this pointer is NULL, your program will be terminated by assert.
- ses
- Output pointer of 'struct iscsi_session' pointer array. Its memory should be freed by iscsi_sessions_free. If this pointer is NULL, your program will be terminated by assert.
- se_count
- Output pointer of uint32_t. Will store the size of
DESCRIPTION
Retrieves all iSCSI sessions. For the properties of 'struct iscsi_session', please refer to the functions defined in 'libopeniscsiusr_session.h' file.
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_sessions_get | March 2026 |