DMMP_MPATH_NAME_GET(3)
π dmmp_mpath_name_get β from the Device Mapper Multipath API, aka libdmmp π
okay bestie, welcome to the libdmmp manual, we're doing this π this one's a little function that hands you a name, and she's lowkey iconic for it.
β¨ NAME β¨
dmmp_mpath_name_get β Retrieve name(alias) of certain mpath.
πΈ SYNOPSIS πΈ
const char * dmmp_mpath_name_get (struct dmmp_mpath *dmmp_mp);
π ARGUMENTS π
dmmp_mpβ Pointer of 'struct dmmp_mpath'. If this pointer isNULL, your program will be terminated by assert. π not a vibe, so pls don't pass NULL, fr fr.
π¦ DESCRIPTION π¦
So like, this function retrieves the name (also known as alias) of a certain mpath. That's it, that's the whole job, and she does it flawlessly π
But here's the tea π β when the config 'user_friendly_names' been set 'no', the name will be identical to the WWID retrieved by dmmp_mpath_wwid_get. So no cute little nickname, just the raw WWID doing its thing. iykyk.
β RETURN β
Returns const char *. No need to free this memory β the resources will get freed when dmmp_mpath_array_free runs. so don't you dare free() her yourself, she's got a whole cleanup system π
and that's the whole page, bestie, you ate that π«Ά
this was dmmp_mpath_name_get from dmmp_...me_get(3), dated June 2025 β libdmmp girlies rise, ily, go call dmmp_mpath_array_free when you're done πβ¨
π¦ where this page comes from
- arch rolling: multipath-tools 0.15.1-1 Β· GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: libdmmp-devel 0.13.1-1.fc44 Β· GPL-2.0-only AND GPL-3.0-only
- fedora 44: libdmmp-devel 0.13.1-1.fc44 Β· GPL-2.0-only AND GPL-3.0-only
- nixos 26.05: multipath-tools 0.14.1
- nixpkgs unstable: multipath-tools 0.14.3
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms