dmmp_strerror(3)

dmmp_strerror3

Convert error code to string.

Usage

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".

Overview

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.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. Arch

From multipath-tools 0.15.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.