DMMP_MPATH_NAME_GET(3)

πŸ“¦
version 0.15.1 Β· 3 versions
, in arch rolling, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 is NULL, 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 πŸ’œβœ¨