# dmmp_mpath_array_get(3) - man - phpman

[dmmp_mpath_array_get(3)](https://www.chedong.com/phpMan.php/man/dmmpmpatharrayget/3/markdown)     Device Mapper Multipath API - libdmmp Manual     [dmmp_mpath_array_get(3)](https://www.chedong.com/phpMan.php/man/dmmpmpatharrayget/3/markdown)



## 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 pro‐
                   gram 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**.



March 2018                              dmmp_mpath_array_get                 [dmmp_mpath_array_get(3)](https://www.chedong.com/phpMan.php/man/dmmpmpatharrayget/3/markdown)
