File: dmmp_mpath_array_get.3

package info (click to toggle)
multipath-tools 0.14.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,088 kB
  • sloc: ansic: 64,885; perl: 1,622; makefile: 742; sh: 732; pascal: 155
file content (36 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.TH "dmmp_mpath_array_get" 3 "dmmp_mpath_array_get" "June 2025" "Device Mapper Multipath API - libdmmp Manual" 
.SH NAME
dmmp_mpath_array_get \- Query all existing multipath devices.
.SH SYNOPSIS
.B "int" dmmp_mpath_array_get
.BI "(struct dmmp_context *" ctx ","
.BI "struct dmmp_mpath ***" dmmp_mps ","
.BI "uint32_t *" dmmp_mp_count ");"
.SH ARGUMENTS
.IP "ctx" 12
Pointer of 'struct dmmp_context'.
If this pointer is NULL, your program will be terminated by assert.
.IP "dmmp_mps" 12
Output pointer array of 'struct dmmp_mpath'.
If this pointer is NULL, your program will be terminated by assert.
.IP "dmmp_mp_count" 12
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.
.SH "DESCRIPTION"

Query all existing multipath devices and store them into a pointer array.
The memory of 'dmmp_mps' should be freed via \fBdmmp_mpath_array_free\fP.
.SH "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 \fBdmmp_strerror\fP.