DMMP_PATH_ARRAY_GET(3)
π dmmp_path_array_get(3) π
okay bestie, welcome to the Device Mapper Multipath API corner of the libdmmp manual β¨ this one's a little function with a big job and honestly? she's giving quiet luxury π
β¨ NAME β¨
dmmp_path_array_get β Retrieve path pointer array. π¦
πΈ SYNOPSIS πΈ
void dmmp_path_array_get (struct dmmp_path_group *dmmp_pg, struct
dmmp_path ***dmmp_ps, uint32_t *dmmp_p_count);
π ARGUMENTS π
dmmp_pgβ Pointer of'struct dmmp_path_group'. If this pointer isNULL, your program will be terminated by assert. π yeah she does NOT play about that one.dmmp_psβ Output pointer of'struct dmmp_path'pointer array. If this pointer isNULL, your program will be terminated by assert. π same energy, no exceptions.dmmp_p_countβ Output pointer ofuint32_t. Holds the size of thedmmp_pspointer array. If this pointer isNULL, your program will be terminated by assert. π okay so basically: pass real pointers, all three of them, or catch these asserts.
ngl the vibe check here is brutal but consistent β NULL in, terminated out. no cap. π«Ά
π§ DESCRIPTION π§
The memory of the output pointer array is held by 'struct dmmp_mpath', so no need to free this memory β bestie you do not have to lift a finger π the resources will get freed when dmmp_mpath_array_free does its thing. it's giving main character taking care of the cleanup π
β RETURN β
void β that's it, that's the whole return. nothing to catch, nothing to check, she just exists. periodt. β¨
cute lil sign-off time π this page is from June 2025, documenting dmmp_path_array_get, and it lives in the dmmp_...ay_get(3) corner of the manual. mwah, go read your path groups responsibly πππ¦
π¦ 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