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_iface_get - Retrieve specified iSCSI interface.

Arguments

ctx Pointer of 'struct iscsi_context'. If this pointer is NULL, your program will be terminated by assert. iface_name String. Name of iSCSI interface. Also the file name of configuration file "/etc/iscsi/iface/<iface_name>". If this pointer is NULL or empty string, your program will be terminated by assert. iface Output pointer of 'struct iscsi_iface'. Its memory should be freed by iscsi_iface_free. If this pointer is NULL, your program will be terminated by assert.

Description

Retrieves specified iSCSI interfaces by reading configuration from "/etc/iscsi/iface/<iface_name>". To generate iSCSI interface configuration when new card installed, please use iscsi_default_iface_setup. Illegal configuration file will be treated as error LIBISCSI_ERR_IDBM. Configuration file not found will be treated as error LIBISCSI_ERR_INVAL.

Name

iscsi_iface_get - Retrieve specified iSCSI interface.

Return

int. Valid error codes are: * LIBISCSI_OK * LIBISCSI_ERR_BUG * LIBISCSI_ERR_NOMEM * LIBISCSI_ERR_ACCESS * LIBISCSI_ERR_SYSFS_LOOKUP * LIBISCSI_ERR_IDBM Error number could be converted to string by iscsi_strerror. July 2025 iscsi_iface_get iscsi_iface_get(3)

Synopsis

intiscsi_iface_get(structiscsi_context*ctx,constchar*iface_name,structiscsi_iface**iface);

See Also