logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

iscsi_strerror - Convert error code to string.

Arguments

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

Description

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"

Name

iscsi_strerror - Convert error code to string.

Return

const char *. The meaning of provided error code. Don't free returned pointer. July 2025 iscsi_strerror iscsi_strerror(3)

Synopsis

constchar*iscsi_strerror(intrc);

See Also