---
name: "dmmp_strerror"
section: "3"
platform: "linux"
package: "multipath-tools"
version: "0.15.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/dmmp_strerror"
---

# dmmp\_strerror(3)

Convert error code to string.

## NAME

dmmp\_strerror - Convert error code to string.

## SYNOPSIS

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

## ARGUMENTS

- rc

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

## 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

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