dmmp\_last\_error\_msg(3) Device Mapper Multipath API - libdmmp Manual dmmp\_last\_error\_msg(3)

# [NAME](#NAME)

dmmp\_last\_error\_msg - Retrieves the last error message.

# [SYNOPSIS](#SYNOPSIS)

**const char * dmmp\_last\_error\_msg** **(struct dmmp\_context \*ctx);**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

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

# [DESCRIPTION](#DESCRIPTION)

Retrieves the last error message.

# [RETURN](#RETURN)

const char \*. No need to free this memory, the resources will get freed when **dmmp\_context\_free**.

dmmp\_last\_error\_msg June 2025

---

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