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

NAME

6       iscsi_session_get - Retrieve specified iSCSI sessions.
7

SYNOPSIS

9       int  iscsi_session_get (struct iscsi_context *ctx, uint32_t sid, struct
10       iscsi_session **se);
11

ARGUMENTS

13       ctx         Pointer of 'struct  iscsi_context'.   If  this  pointer  is
14                   NULL, your program will be terminated by assert.
15
16       sid         uint32_t, iSCSI session ID.
17
18       se          Output  pointer of 'struct iscsi_session' pointer. Its mem‐
19                   ory should be freed by iscsi_session_free.  If this pointer
20                   is  NULL,  your  program  will be terminated by assert.  If
21                   specified iSCSI session does not exist, this  pointer  will
22                   be set to NULL with LIBISCSI_OK returned.
23

DESCRIPTION

25       Retrieves specified iSCSI sessions. For the properties of
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       * LIBISCSI_ERR_SESS_NOT_FOUND
41
42       Error number could be converted to string by iscsi_strerror.
43
44
45
46July 2023                      iscsi_session_get          iscsi_session_get(3)
Impressum