lsm_targe...l_name_get(3)
π NAME π
lsm_target_port_physical_name_get β bestie, this is the one that grabs the physical name for the target_port β¨
πΈ SYNOPSIS πΈ
const char * lsm_target_port_physical_name_get (lsm_target_port *tp);
π ARGUMENTS π
tpβ a pointer to thelsm_target_portyou wanna get the physical name for π«Ά
β VERSION β
1.0 β she's been here since day one, iconic behavior π
π¦ DESCRIPTION π¦
Okay so, this function retrieves the physical name for the target_port. And the way that matters is: an administrator can use this name to locate the port on the storage system. Like, actual real-world "where is this thing physically" energy π. Very main character of it.
π NOTE π
Heads up bestie, this is important π¨
The address you get back is valid until lsm_target_port gets freed. If you need it to live longer than that, copy the return value β periodt. And do not free the returned string, not even a little, not even as a treat π
π RETURN π
A string. But she returns NULL if the argument 'tp' is NULL or is not a valid lsm_target_port pointer. So likeβ¦ vibe check your pointer first, fr fr π
Written up in the Libstoragemgmt C API Manual, version 1.0, dated February 2026 β slay, stay hydrated, and always free your structs π§π
π¦ 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