lsm_targe...ddress_get(3)
β¨ lsm_target_port_service_address_get(3) β¨
okay bestie, so this one lives in section 3 of the Libstoragemgmt C API Manual, and it's literally just one little function that hands you a string. cute, right? let's get into it π
π NAME π
lsm_target_port_service_address_get β the way you retrieve the service address for the target_port. that's it. that's the whole job. she's a one-trick pony and she's iconic for it π
πΈ SYNOPSIS πΈ
const char * lsm_target_port_service_address_get (lsm_target_port *tp);
π¦ ARGUMENTS π¦
tpβ pointer oflsm_target_portto retrieve service address for. yes queen, that's the one you want the address from π«Ά
β VERSION β
1.0
π DESCRIPTION π
Retrieve the service address for the target_port. the service address is a lower case string, and it's the thing the upper layer β think FC and iSCSI β actually uses. no cap, here's what it looks like per flavor:
- FC/FCoE:
- WWPN (split with
:every two digits)
- WWPN (split with
- iSCSI:
- iSCSI IQN
so depending on which one you're riding with, you get a different lil format back, but it's always that lowercase string vibe π
π NOTE π
The address returned is valid until lsm_target_port gets freed. copy the return value if you need a longer scope. Do not free returned string. for real for real, do NOT free it β that string is not yours to free, and trying to will have you in your flop era π
π RETURN π
string. and it's NULL if argument 'tp' is NULL or not a valid lsm_target_port pointer. so like, vibe check your pointer first bestie π
mwah π that's the whole page. this one's from the Libstoragemgmt C API Manual, version 1.0, dated February 2026 β sending u all the target port energy, slay, periodt π
π¦ where this page comes from
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms