lsm_targe...dress_get(3)
β¨ lsm_target_port_physical_address_get(3) β¨
okay so bestie, welcome to the Libstoragemgmt C API Manual π this is lsm_target_port_physical_address_get(3) and it's literally just here to hand you the physical address of a target port. that's it. that's the whole vibe. π
NAME
lsm_target_port_physical_address_get β retrieve the physical address for the target_port π¦
SYNOPSIS
const char * lsm_target_port_physical_address_get (lsm_target_port
*tp);
ARGUMENTS
tpβ pointer oflsm_target_portto retrieve physical address for. give it the port, it gives you the address, no cap π«Ά
VERSION
1.0 β
DESCRIPTION
so you call this and it retrieves the physical address for the target_port. simple. iconic. π
the physical address is a lower case string which is used by the physical layer, like FC-0 and MAC. and here's the breakdown by transport, because details matter bestie:
- FC/FCoE:
WWPN(split with:every two digits)
- iSCSI:
MACaddress (split with:every two digits)
NOTE
π¨ the address returned is valid until lsm_target_port gets freed. if you need it to live longer than that, copy the return value. and do NOT free the returned string. i'm so serious. do not free it. π
RETURN
string. it's NULL if the argument 'tp' is NULL, or if it's not a valid lsm_target_port pointer. π
okay that's the whole page, you ate it, periodt π
big love to the Libstoragemgmt C API Manual for this one, dated February 2026 πΈ and yes the footer goes a lil something like lsm_target_port_physical_address_lsm_targe...dress_get(3) because the page name got a whole dramatic makeover in the header, but that's the manual name folded in right up top, iykyk π take care of your strings and stay slay β¨π§
π¦ 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