logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dmmp_mpath_array_get - Query all existing multipath devices.

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.

Name

       dmmp_mpath_array_get - Query all existing multipath devices.

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)

Synopsis

intdmmp_mpath_array_get(structdmmp_context*ctx,structdmmp_mpath***dmmp_mps,uint32_t*dmmp_mp_count);

See Also