DMMP_PATH_GROUP_ARRAY_GET(3)
β¨ NAME β¨
dmmp_path_group_array_get β bestie, this one grabs you the pointer array of path groups π
It lives in the Device Mapper Multipath API - libdmmp manual, section 3, and the page is literally called dmmp_...ay_get(3) because even man pages get tired of typing π
πΈ SYNOPSIS πΈ
void dmmp_path_group_array_get (struct dmmp_mpath *dmmp_mp, struct
dmmp_path_group ***dmmp_pgs, uint32_t *dmmp_pg_count);
okay so it takes three things and hands back absolutely nothing (void, we love a low-maintenance king π)
π ARGUMENTS π
dmmp_mpβ pointer ofstruct dmmp_mpath. the mpath you're snooping on π΅οΈββοΈ no cap: if this pointer isNULL, your program gets terminated byassert. like, dead. gone. not a vibe.dmmp_pgsβ output pointer ofstruct dmmp_path_grouppointer array. yep, that's a triple pointer, it's giving inception π and fr fr, if this pointer isNULL, your program will be terminated byassert.dmmp_pg_countβ output pointer ofuint32_t. it holds the size of thedmmp_pgspointer array, so you know how many little guys you got π«Ά and yes, if this pointer isNULL, your program will be terminated byassert. all three of them, same energy, no mercy π
three pointers, three asserts, zero chill. check your args before you ship, bestie π
π¦ DESCRIPTION π¦
Retrieve the path groups of a certain mpath. that's it, that's the whole job, and it does it slayfully β¨
the memory of the output pointer array is held by struct dmmp_mpath, so do not free it β you don't own it, you're just borrowing it, hands off π the resources get freed when dmmp_mpath_array_free runs, so let that function do its thing and don't be a hero.
π RETURN π
void
it returns nothing. it gives nothing back. it simply is. main character energy, honestly β
so yeah, that's the whole page: dmmp_path_group_array_get from the Device Mapper Multipath API - libdmmp Manual, dated June 2025, sitting pretty in section dmmp_...ay_get(3) π go forth and retrieve those path groups, bestie, you got this π
π
π¦ 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