lsm_targe...ddress_get(3)

πŸ“¦
version 1.10.3 Β· 3 versions
, in fedora 43, fedora 44

✨ 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 of lsm_target_port to 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)
  • 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