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

# [NAME](#NAME)

dmmp\_strerror - Convert error code to string.

# [SYNOPSIS](#SYNOPSIS)

**const char * dmmp\_strerror** **(int rc);**

# [ARGUMENTS](#ARGUMENTS)

[rc](#rc)

int. Return code by libdmmp functions. When provided error code is not a valid error code, return "Invalid argument".

# [DESCRIPTION](#DESCRIPTION)

Convert error code (int) to string (const char \*):

\* DMMP\_OK -- "OK"

\* DMMP\_ERR\_BUG -- "BUG of libdmmp library"

\* DMMP\_ERR\_NO\_MEMORY -- "Out of memory"

\* DMMP\_ERR\_IPC\_TIMEOUT -- "Timeout when communicate with multipathd, try to set bigger timeout value via dmmp\_context\_timeout\_set ()"

\* DMMP\_ERR\_IPC\_ERROR -- "Error when communicate with multipathd daemon"

\* DMMP\_ERR\_NO\_DAEMON -- "The multipathd daemon not started"

\* DMMP\_ERR\_INCOMPATIBLE -- "The multipathd daemon version is not compatible with current library"

\* Other invalid error number -- "Invalid argument"

# [RETURN](#RETURN)

const char \*. The meaning of provided error code.

dmmp\_strerror June 2025

---

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