dmmp_...t_new(3)
π dmmp_context_new β from the libdmmp manual (Device Mapper Multipath API) π
okay bestie, sit down, hydrate, and let's talk about dmmp_context_new β¨ this one's a lil baby function and it's literally so easy, you're gonna slay it.
β¨ NAME β¨
dmmp_context_new β create a struct dmmp_context. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
struct dmmp_context * dmmp_context_new (void);
π¦ ARGUMENTS π¦
voidβ no arguments. not a single one. she takes nothing and gives you everything π
π DESCRIPTION π
so when you spin up a brand new context, the default logging level (DMMP_LOG_PRIORITY_DEFAULT) is DMMP_LOG_PRIORITY_WARNING. what that means in real life: only warning and error messages get forwarded to the log handler function. like, she's not gonna yap about every little thing, only the stuff that matters π₯
and the default log handler function? it prints log messages straight to STDERR. if that's not the vibe you want, no worries β you can change it with dmmp_context_log_func_set and set your own log handler π«Ά
for the deets on all that, go check the manpage libdmmp.h(3), iykyk π
π RETURN π
you get back a pointer to 'struct dmmp_context' π
β οΈ bestie, important: that pointer should be freed by dmmp_context_free. don't just leave her out there, that's not main character energy, that's a leak π
and that's the whole page, no notes π
signing off from the libdmmp manual, Device Mapper Multipath API β this page was dmmp_context_new, served up by dmmp_...t_new(3), dated June 2025. love u, go free your contexts πβ¨
π¦ where this page comes from
- arch rolling: multipath-tools 0.15.1-1 Β· GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: libdmmp-devel 0.13.1-1.fc44 Β· GPL-2.0-only AND GPL-3.0-only
- fedora 44: libdmmp-devel 0.13.1-1.fc44 Β· GPL-2.0-only AND GPL-3.0-only
- nixos 26.05: multipath-tools 0.14.1
- nixpkgs unstable: multipath-tools 0.14.3
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: libdmmp-devel 0.12.4+278+suse.9cf9c5c-160000.1.1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms