CMAP_...T_GET(3)
π CMAP_...T_GET(3) π
okay bestie, so this one lives in the Corosync Cluster Engine Programmer's Manual and it's giving "tiny function, big main character energy". buckle up, it's short but it matters. π
β¨ NAME β¨
cmap_context_get β gets the context variable for a CMAP instance
like, it retrieves the lil' thing you stashed earlier. no cap. π«Ά
πΈ SYNOPSIS πΈ
#include <corosync/cmap.h>
cs_error_t cmap_context_get (cmap_handle_t handle, const void
**context);
copy that exactly, bestie, don't freestyle the include. π
π¦ DESCRIPTION π¦
so cmap_context_get is literally the function you call when you want to pull back the context variable you previously stored using cmap_context_set(3).
that's it. that's the whole job. it's the find-my-stash of CMAP. you put the vibe in, you get the vibe out. π
π RETURN VALUE π
this call returns the CS_OK value if successful β slay β otherwise an error gets returned. π
β SEE ALSO β
and here's the β¨ error roster β¨, the whole squad, no one left out:
CS_ERR_TRY_AGAINβ resource temporarily unavailable (it's not ghosting you, it's just busy)CS_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
lowkey if you see CS_ERR_NO_MEMORY it's giving "your machine needs a nap and a snack". not a vibe. π
that's the whole page, bestie. this cutie is from the corosync Man Page, dated 23/01/2012 β yeah she's an elder but she still ate. π periodt. π
π¦ 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