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

# [NAME](#NAME)

dmmp\_flush\_mpath - Flush specified multipath device map if unused.

# [SYNOPSIS](#SYNOPSIS)

**int dmmp\_flush\_mpath** **(struct dmmp\_context \*ctx,** **const char \*mpath\_name);**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

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

[mpath\_name](#mpath_name)

const char \*. The name of multipath device map.

# [DESCRIPTION](#DESCRIPTION)

Flush a multipath device map specified as parameter, if unused.

# [RETURN](#RETURN)

int. Valid error codes are:

\* DMMP\_OK

\* DMMP\_ERR\_BUG

\* DMMP\_ERR\_NO\_MEMORY

\* DMMP\_ERR\_NO\_DAEMON

\* DMMP\_ERR\_MPATH\_BUSY

\* DMMP\_ERR\_MPATH\_NOT\_FOUND

\* DMMP\_ERR\_INVALID\_ARGUMENT

\* DMMP\_ERR\_PERMISSION\_DENY

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

dmmp\_flush\_mpath June 2025

---

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