CPG_ZCB_FREE(3)
π CPG_ZCB_FREE β bestie edition π
okay so this is a page from the Corosync Cluster Engine Programmer's Manual, and it's about cpg_zcb_free β the little cleanup icon that frees a zero copy buffer. short page, big vibes, let's go β¨
β¨ NAME β¨
cpg_zcb_free β frees a zero copy buffer π§
πΈ SYNOPSIS πΈ
#include <corosync/cpg.h>
int cpg_zcb_fre(cpg_handle_t handle, void *buffer);
yes bestie, it really says cpg_zcb_fre up there β that's exactly how it's written, so I'm keeping it character for character. no cap, don't @ me π
π DESCRIPTION π
so the cpg_zcb_free function does one thing and it does it gorgeously: it frees a zero copy buffer. that's it. that's the whole job. main character energy fr fr π«Ά
the argument handle describes the handle on which the buffer will be allocated. π
the argument buffer is the zero copy buffer to free. bye bestie, releasing you back into the wild π¦
π RETURN VALUE π
this call returns the CS_OK value if it's successful. and if it's not? an error gets returned instead. simple as that, no notes β¨
π ERRORS π
the errors are undocumented. that's it. that's the whole error section. we know nothing and we're at peace with it π
π₯ SEE ALSO π₯
go read these next, they're all icons:
cpg_overview(3),cpg_initialize(3),cpg_finalize(3),cpg_fd_get(3),cpg_dispatch(3),cpg_join(3),cpg_leave(3),cpg_mcast_joined(3),cpg_membership_get(3)cpg_zcb_alloc(3)cpg_zcb_free(3)cpg_zcb_mcast_joined(3)cpg_context_get(3)cpg_context_set(3)cpg_local_get(3)
and here's the error code rundown, all of them, no skips:
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
π reminder: the errors themselves are undocumented, so treat these as the list of things you might see, not a promise about when you'll see them.
and that's the whole page bestie, we ate and left no crumbs π β¨ this one's from the corosync Man Page, dated 2009-04-15, filed under CPG_ZCB_FREE(3) β vintage, iconic, obsessed, periodt πππ
π¦ where this page comes from
- debian bookworm: libcpg-dev 3.1.7-1+deb12u2 Β· BSD-3-Clause
- debian trixie: libcpg-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: libcpg-dev 3.1.6-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: libcpg-dev 3.1.6-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: libcpg-dev 3.1.7-1ubuntu3 Β· BSD-3-Clause
- ubuntu noble: libcpg-dev 3.1.7-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu questing: libcpg-dev 3.1.9-2ubuntu1
- ubuntu questing: libcpg-dev 3.1.9-2ubuntu1.1
- ubuntu resolute: libcpg-dev 3.1.9-2ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libcpg-dev 3.1.10-3ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2009 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms