CMAP_FINALIZE(3)
π CMAP_FINALIZE β bestie, we're logging OFF π
okay so this is a page from the Corosync Cluster Engine Programmer's Manual, and it's about closing up shop. like when you leave the group chat but, y'know, for a connection. let's get into it β¨
πΈ NAME πΈ
cmap_finalize β the "okay bye, love u, talk later" of the CMAP API. it finalizes your connection. periodt.
π SYNOPSIS π
#include <corosync/cmap.h>
cs_error_t cmap_finalize (cmap_handle_t handle);
π¦ DESCRIPTION π¦
so cmap_finalize is the function you call to close a connection to the CMAP API. no cap.
once the connection is finalized, the handle may not be used again by applications. like, at all. it's done. it's giving expired. do not text back. π
also, no more callbacks will be dispatched from the cmap_dispatch function after this. the party's over, the lights are on, everyone go home π«Ά
π RETURN VALUE π
this call returns the CS_OK value if it went well (slay β¨), otherwise an error gets returned. and specifically: the CS_ERR_BAD_HANDLE error shows up when the handle is invalid. like if you handed it a handle that was never a handle. rude, but valid.
π SEE ALSO π
and now, the full error-code lineup, because we do not gatekeep π :
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
lowkey the CS_ERR_NO_MEMORY one is the saddest, bestie. not enough memory to complete the requested task π the computer is tired.
okay that's the whole page!! this was pulled straight from the corosync Man Page, dated 20/01/2012 β iconic vintage, honestly, it ate. now go finalize that handle and live your main character life π§π
π¦ 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