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

NAME

6       iscsi_strerror - Convert error code to string.
7

SYNOPSIS

9       const char * iscsi_strerror (int rc);
10

ARGUMENTS

12       rc          int. Return code by libiscsiur functions. When provided er‐
13                   ror code is not a valid error code, return  "Invalid  argu‐
14                   ment".
15

DESCRIPTION

17       Convert error code (int) to string (const char *):
18
19       * LIBISCSI_OK -- "OK"
20
21       * LIBISCSI_ERR_BUG -- "BUG of libopeniscsiusr library"
22
23       * LIBISCSI_ERR_SESS_NOT_FOUND - "Specified iSCSI session not found"
24
25       * LIBISCSI_ERR_ACCESS - "Permission deny"
26
27       * LIBISCSI_ERR_NOMEM - "Out of memory"
28
29       * LIBISCSI_ERR_SYSFS_LOOKUP - "Could not lookup object in sysfs"
30
31       * Other invalid error number -- "Invalid argument"
32

RETURN

34       const  char  *. The meaning of provided error code. Don't free returned
35       pointer.
36
37
38
39July 2023                       iscsi_strerror               iscsi_strerror(3)
Impressum