iscsi_session...stent_port_get(3)
okay bestie, welcome to the iscsi_session...stent_port_get(3) page from the API Manual β yes, the title is giving keyboard-smash energy, but the actual function is iscsi_session_persistent_port_get, and she has one job. π
β¨
πΈ NAME πΈ
iscsi_session_persistent_port_getβ retrieve the iSCSI target persistent port of the specified session. thatβs it, thatβs the whole name-section vibe, no cap. π
β¨ SYNOPSIS β¨
this is the signature, bestie β copy it exactly or the compiler will side-eye you:
int32_t iscsi_session_persistent_port_get (struct iscsi_session *se);
π ARGUMENTS π
seβ Pointer of 'struct iscsi_session'. If this pointer isNULL, your program will be terminated byassert. so bestie, do not passNULLunless youβre emotionally prepared for the assert to end the whole program ππ
π¦ DESCRIPTION π¦
so this function retrieves the iSCSI target persistent port of the specified iSCSI session. The 'persistent port' is the network port where the iSCSI initiator sends the initial request. π«Ά lowkey important.
when iSCSI redirection is in use, this port might not be the network port used for the actual iSCSI transaction. thatβs the plot twist π for the target network address of the iSCSI transaction, please use iscsi_session_port_get instead β sheβs the one for that address, iykyk. π
π RETURN π
int32_t. If itβs not supported, you get -1. periodt. π
mwah π β source/version realness: API Manual; date: September 2026. go get that persistent port, bestie. πβ¨
π¦ 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