CMAP_...T_SET(3)
β¨ CMAP_CONTEXT_SET β the CMAP_...T_SET(3) page, bestie edition β¨
okay so this is from the Corosync Cluster Engine Programmer's Manual, and it's literally just one tiny little function that holds onto a pointer for you. no cap, that's the whole vibe. let's get into it π
πΈ NAME πΈ
cmap_context_set β sets the context variable for a CMAP instance
like. it stores your lil context thing. that's it. that's the job. π
π SYNOPSIS π
#include <corosync/cmap.h>
cs_error_t cmap_context_set (cmap_handle_t handle, const void *context);
two args, one return, zero drama. slay.
π¦ DESCRIPTION π¦
so the cmap_context_set function is used to store the context variable for a cmap instance. that's the whole thing bestie, that's the assignment π«Ά
and here's the part that's lowkey iconic: it has no meaning inside libcmap itself and will not be touched by the library. like, libcmap is respectfully minding its own business. it's just holding your pointer for you, not looking at it, not judging it, not doing anything with it π
so if you wanna get it back later? that's what cmap_context_get(3) is for. the retrieval arc. the reunion. periodt β¨
π RETURN VALUE π
this call returns the CS_OK value if successful. otherwise? an error is returned. that's it. that's the tea π
π SEE ALSO π
and now for the error codes, because the error codes are the main characters too, fr fr:
CS_ERR_TRY_AGAINβ Resource temporarily unavailableCS_ERR_INVALID_PARAMβ Invalid argumentCS_ERR_ACCESSβ Permission deniedCS_ERR_LIBRARYβ The connection failedCS_ERR_INTERRUPTβ System call interrupted by a signalCS_ERR_NOT_SUPPORTEDβ The requested protocol/functionality not supportedCS_ERR_MESSAGE_ERRORβ Incorrect auth message receivedCS_ERR_NO_MEMORYβ Not enough memory to complete the requested task
ngl if you're seeing CS_ERR_NO_MEMORY bestie, something is going THROUGH it and it is not you π
and that's the whole page!! this lil gem comes from the corosync Man Page, dated 23/01/2012 β yes she's an elder, yes she still ate, we respect our vintage queens around here ππ mwah, go forth and set your contexts π§ββοΈ
π¦ where this page comes from
- debian bookworm: libcmap-dev 3.1.7-1+deb12u2 Β· BSD-3-Clause
- debian trixie: libcmap-dev 3.1.9-2+deb13u1 Β· BSD-3-Clause
- epel 9: corosynclib-devel 3.1.10-0.2.el9.1 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- nixos 26.05: corosync 3.1.9
- nixpkgs unstable: corosync 3.1.9
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- ubuntu jammy: libcmap-dev 3.1.6-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: libcmap-dev 3.1.6-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: libcmap-dev 3.1.7-1ubuntu3 Β· BSD-3-Clause
- ubuntu noble: libcmap-dev 3.1.7-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu questing: libcmap-dev 3.1.9-2ubuntu1
- ubuntu questing: libcmap-dev 3.1.9-2ubuntu1.1
- ubuntu resolute: libcmap-dev 3.1.9-2ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libcmap-dev 3.1.10-3ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2012 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms