iscsi_default_iface_setup(3)

πŸ‘‘ NAME πŸ‘‘

iscsi_default_iface_setup(3) β€” bestie, this is the API Manual page for iscsi_default_iface_setup, and its whole job is literally setting up default iSCSI interfaces. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

int iscsi_default_iface_setup (struct iscsi_context *ctx);

πŸŽ€ ARGUMENTS πŸŽ€

  • ctx β€” a pointer to struct iscsi_context. That's the vibe 🫢

🌸 DESCRIPTION 🌸

Okay so this function sets up the default iSCSI interfaces for iSCSI TCP, iSER, and iSCSI hardware offload cards. ✨ It is required after a new iSCSI hardware offload card is installed β€” like, don't skip it, bestie.

The following kernel modules get loaded when required by this function:

  • cxgb3i
  • cxgb4i
  • bnx2i

It will also create configuration files for iSCSI hardware offload cards in /etc/iscsi/ifaces/<iface_name>. Yes, that exact path. πŸŽ€

πŸ”₯ RETURN πŸ”₯

Returns int. The 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. 🫢


πŸ’– that's the whole page, bestie! This one is from the API Manual, dated September 2026 β€” iscsi_default_iface_setup(3), signing off. Byeee πŸ‘‘βœ¨

πŸ“¦ where this page comes from