DMMP_PATH_GROUP_ARRAY_GET(3)

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

✨ 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 of struct dmmp_mpath. the mpath you're snooping on πŸ•΅οΈβ€β™€οΈ no cap: if this pointer is NULL, your program gets terminated by assert. like, dead. gone. not a vibe.
  • dmmp_pgs β€” output pointer of struct dmmp_path_group pointer array. yep, that's a triple pointer, it's giving inception πŸŒ€ and fr fr, if this pointer is NULL, your program will be terminated by assert.
  • dmmp_pg_count β€” output pointer of uint32_t. it holds the size of the dmmp_pgs pointer array, so you know how many little guys you got 🫢 and yes, if this pointer is NULL, your program will be terminated by assert. 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 πŸ’…πŸŽ€