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:

and here's the error code rundown, all of them, no skips:

  • CS_ERR_TRY_AGAIN β€” Resource temporarily unavailable
  • CS_ERR_INVALID_PARAM β€” Invalid argument
  • CS_ERR_ACCESS β€” Permission denied
  • CS_ERR_LIBRARY β€” The connection failed
  • CS_ERR_INTERRUPT β€” System call interrupted by a signal
  • CS_ERR_NOT_SUPPORTED β€” The requested protocol/functionality not supported
  • CS_ERR_MESSAGE_ERROR β€” Incorrect auth message received
  • CS_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