---
name: "dmmp_mpath_array_get"
section: "3"
platform: "linux"
package: "multipath-tools"
version: "0.15.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/dmmp_mpath_array_get"
---

# dmmp\_mpath\_array\_get(3)

Query all existing multipath devices.

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

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

## 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

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