1iscsi_sessions_get(3)             API Manual             iscsi_sessions_get(3)
2
3
4

NAME

6       iscsi_sessions_get - Retrieve all iSCSI sessions.
7

SYNOPSIS

9       int iscsi_sessions_get (struct iscsi_context *ctx, struct iscsi_session
10       ***ses, uint32_t *se_count);
11

ARGUMENTS

13       ctx         Pointer of 'struct  iscsi_context'.   If  this  pointer  is
14                   NULL, your program will be terminated by assert.
15
16       ses         Output pointer of 'struct iscsi_session' pointer array. Its
17                   memory should be freed  by  iscsi_sessions_free.   If  this
18                   pointer is NULL, your program will be terminated by assert.
19
20       se_count    Output pointer of uint32_t. Will store the size of
21

DESCRIPTION

23       Retrieves  all iSCSI sessions. For the properties of 'struct iscsi_ses‐
24       sion', please refer to the functions defined  in  'libopeniscsiusr_ses‐
25       sion.h' file.
26

RETURN

28       int. Valid error codes are:
29
30       * LIBISCSI_OK
31
32       * LIBISCSI_ERR_BUG
33
34       * LIBISCSI_ERR_NOMEM
35
36       * LIBISCSI_ERR_ACCESS
37
38       * LIBISCSI_ERR_SYSFS_LOOKUP
39
40       Error number could be converted to string by iscsi_strerror.
41
42
43
44July 2023                     iscsi_sessions_get         iscsi_sessions_get(3)
Impressum