DMMP_CONTEXT_LOG_FUNC_SET(3)
π NAME π
dmmp_context_log_func_set β the little function that lets you set your very own log handler function, bestie. she's here to catch all the tea your code is spilling β¨
πΈ SYNOPSIS πΈ
void dmmp_context_log_func_set (struct dmmp_context *ctx, void
(*log_func) (struct dmmp_context *ctx, int priority, const char *file,
int line, const char *func_name, const char *format, va_list args));
π ARGUMENTS π
ctxβ a pointer of'struct dmmp_context'. no cap, if this pointer isNULL, your program will be terminated by assert. like, straight up deleted. gone. π so pls pass a real one.log_funcβ a pointer of the log handler function. if you set this toNULL, all log will be ignored. she's just not listening anymore π
π¦ DESCRIPTION π¦
okay so here's the vibe: this function sets a custom log handler. your handler gets invoked whenever a log message is equal or more important (less value) than the log priority setting β yes bestie, less value means more important, it's giving upside-down logic but that's just how it is, iykyk.
π‘ for the full detail usage, go check the manpage libdmmp.h(3). she has the lore. πβ¨
π RETURN π
void
like, she returns nothing. no value, no drama, just vibes. periodt. π
and that's the whole page bestie!! π«Ά this was dmmp_context_log_func_set from the Device Mapper Multipath API β libdmmp Manual, all the way from June 2025. slay, go log something iconic πβπ
π¦ 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