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

# [NAME](#NAME)

dmmp\_context\_new - Create struct dmmp\_context.

# [SYNOPSIS](#SYNOPSIS)

**struct dmmp\_context * dmmp\_context\_new** **(void);**

# [ARGUMENTS](#ARGUMENTS)

[void](#void)

no arguments

# [DESCRIPTION](#DESCRIPTION)

The default logging level (DMMP\_LOG\_PRIORITY\_DEFAULT) is DMMP\_LOG\_PRIORITY\_WARNING which means only warning and error message will be forward to log handler function. The default log handler function will print log message to STDERR, to change so, please use **dmmp\_context\_log\_func\_set** to set your own log handler, check manpage [libdmmp.h(3)](/man/os/multipath-tools/libdmmp.h.3) for detail.

# [RETURN](#RETURN)

Pointer of 'struct dmmp\_context'. Should be freed by **dmmp\_context\_free**.

dmmp\_context\_new June 2025

---

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