iscsi_sessions_get(3) | iSCSI Userspace API - libopeniscsiusr Manual | iscsi_sessions_get(3) |
iscsi_sessions_get - Retrieve all iSCSI sessions.
int iscsi_sessions_get (struct iscsi_context *ctx, struct iscsi_session ***ses, uint32_t *se_count);
Retrieves all iSCSI sessions. For the properties of 'struct iscsi_session', please refer to the functions defined in 'libopeniscsiusr_session.h' file.
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 | May 2021 |