dmmp\_mpath\_array\_get(3) Device Mapper Multipath API - libdmmp Manual dmmp\_mpath\_array\_get(3)

# [NAME](#NAME)

dmmp\_mpath\_array\_get - Query all existing multipath devices.

# [SYNOPSIS](#SYNOPSIS)

**int dmmp\_mpath\_array\_get** **(struct dmmp\_context \*ctx,** **struct dmmp\_mpath \*\*\*dmmp\_mps,** **uint32\_t \*dmmp\_mp\_count);**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

Pointer of 'struct dmmp\_context'. If this pointer is NULL, your program will be terminated by assert.

[dmmp\_mps](#dmmp_mps)

Output pointer array of 'struct dmmp\_mpath'. If this pointer is NULL, your program will be terminated by assert.

[dmmp\_mp\_count](#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.

# [DESCRIPTION](#DESCRIPTION)

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**.

# [RETURN](#RETURN)

int. Valid error codes are:

\* DMMP\_OK

\* DMMP\_ERR\_BUG

\* DMMP\_ERR\_NO\_MEMORY

\* DMMP\_ERR\_NO\_DAEMON

\* DMMP\_ERR\_INCONSISTENT\_DATA

Error number could be converted to string by **dmmp\_strerror**.

dmmp\_mpath\_array\_get June 2025

---

Document: dmmp_mpath_array_get(3) from multipath-tools 0.15.1-r0 (Chainguard OS)
Source: https://github.com/opensvc/multipath-tools
