dmmp_mpath_array_get - Query all existing multipath devices.
| Use Case | Command | Description |
|---|---|---|
| Query all multipath devices | dmmp_mpath_array_get(ctx, &dmmp_mps, &dmmp_mp_count) | Retrieve pointer array of all multipath device objects |
| Free the array | dmmp_mpath_array_free(dmmp_mps, dmmp_mp_count) | Release memory allocated by the get function |
int dmmp_mpath_array_get (struct dmmp_context *ctx, struct dmmp_mpath ***dmmp_mps, uint32_t *dmmp_mp_count);
ctx — Pointer of 'struct dmmp_context'. If this pointer is NULL, your program will be terminated by assert.
dmmp_mps — Output pointer array of 'struct dmmp_mpath'. If this pointer is NULL, your program will be terminated by assert.
dmmp_mp_count — Output pointer of uint32_t. Hold the size of 'dmmp_mps' pointer array. If this pointer is NULL, your program will be terminated by assert.
Query all existing multipath devices and store them into a pointer array. The memory of 'dmmp_mps' should be freed via dmmp_mpath_array_free.
int. Valid error codes are:
Error number could be converted to string by dmmp_strerror.
Generated by phpman v4.9.25-25-g40dbf62 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-16 13:31 @2600:1f28:365:80b0:8802:8bb4:3873:328e
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format