iscsi_ifaces_get(3)
okay so bestie, this is iscsi_ifaces_get(3) from the API Manual β and it's literally the βgimme all the iSCSI interfacesβ function. slay π
π NAME π
iscsi_ifaces_get β Retrieve all iSCSI interfaces. π
β¨ SYNOPSIS β¨
int iscsi_ifaces_get (struct iscsi_context *ctx, struct iscsi_iface
***ifaces, uint32_t *iface_count);
π«Ά ARGUMENTS π«Ά
ctxβ Pointer ofstruct iscsi_context. If this pointer isNULL, your program will be terminated byassert. no cap, it's giving βdo not pass NULLβ energy πifacesβ Output pointer ofstruct iscsi_ifacepointer array. Its memory should be freed byiscsi_ifaces_free. If this pointer isNULL, your program will be terminated byassert. bestie, free it properly π«Άiface_countβ Output pointer ofuint32_t. Will store the size of
yes, the source sentence literally ends at βWill store the size ofβ β I'm not inventing the rest, bestie π
πΈ DESCRIPTION πΈ
Retrieves all iSCSI interfaces. For the properties of struct iscsi_iface, please refer to the functions defined in the 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. iconic setup behavior, periodt β¨
π RETURN π
int. Valid error codes are:
LIBISCSI_OKLIBISCSI_ERR_BUGLIBISCSI_ERR_NOMEMLIBISCSI_ERR_ACCESSLIBISCSI_ERR_SYSFS_LOOKUP
Error number could be converted to string by iscsi_strerror. π§
mwah π β this is from the API Manual, iscsi_ifaces_get, dated September 2026. that's the footer vibe, and honestly? it ate. π
π¦ where this page comes from
- alpine 3.24: open-iscsi-doc 2.1.12-r0 Β· GPL-2.0-only
- arch rolling: open-iscsi 2.1.13-1 Β· GPL
- debian bookworm: libopeniscsiusr-dev 2.1.8-1+deb12u1 Β· GPL-2.0-or-later
- ubuntu stonking: libopeniscsiusr-dev 2.1.11-5ubuntu6 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms