iscsi_strerror(3)

iscsi_strerror3

Convert error code to string.

Usage

const char * iscsi_strerror (int rc);

Arguments

rc

int. Return code by libiscsiur functions. When provided error code is not a valid error code, return "Invalid argument".

Overview

Convert error code (int) to string (const char *):

* LIBISCSI_OK -- "OK"

* LIBISCSI_ERR_BUG -- "BUG of libopeniscsiusr library"

* LIBISCSI_ERR_SESS_NOT_FOUND - "Specified iSCSI session not found"

* LIBISCSI_ERR_ACCESS - "Permission deny"

* LIBISCSI_ERR_NOMEM - "Out of memory"

* LIBISCSI_ERR_SYSFS_LOOKUP - "Could not lookup object in sysfs"

* Other invalid error number -- "Invalid argument"

Return

const char *. The meaning of provided error code. Don't free returned pointer.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From open-iscsi 2.1.13-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.