iscsi_ifaces_get(3) | iSCSI Userspace API - libopeniscsiusr Manual | iscsi_ifaces_get(3) |
iscsi_ifaces_get - Retrieve all iSCSI interfaces.
int iscsi_ifaces_get (struct iscsi_context *ctx, struct iscsi_iface ***ifaces, uint32_t *iface_count);
Retrieves all iSCSI interfaces. For the properties of 'struct iscsi_iface', please refer to the functions defined in 'libopeniscsiusr_iface.h' file. The returned results contains default iSCSI interfaces(iser and iscsi_tcp) and iSCSI interfaces configured in "/etc/iscsi/ifaces/". Illegal configuration file will be skipped and warned. To generate iSCSI interface configuration when new card installed, please use iscsi_default_iface_setup.
int. Valid error codes are:
* LIBISCSI_OK
* LIBISCSI_ERR_BUG
* LIBISCSI_ERR_NOMEM
* LIBISCSI_ERR_ACCESS
* LIBISCSI_ERR_SYSFS_LOOKUP
Error number could be converted to string by iscsi_strerror.
iscsi_ifaces_get | May 2021 |