VOTEQ...T_SET(3)
π VOTEQ...T_SET(3) π
okay bestie, welcome to the Corosync Cluster Engine Programmer's Manual π β this is the page for votequorum_context_set(3), and yes the section-3 energy is immaculate. sit down, grab a strawberry π, let's go.
β¨ NAME β¨
votequorum_context_set β sets the context variable for a VOTEQUORUM instance π¦
β¨ SYNOPSIS β¨
#include <corosync/votequorum.h>
int votequorum_context_set(votequorum_handle_t handle, void *context);
like. two lines. that's the whole vibe check. π«Ά
β¨ DESCRIPTION β¨
so, votequorum_context_set is literally the function you call to set the context variable for a votequorum instance. that's it, that's the job π
and here's the thing β it has no meaning inside libvotequorum itself. the library will not touch it. not even a little. not even once π it's just a lil spot for you to stash your stuff, and libvotequorum is respectfully minding its own business.
want it back later? obviously you do. you retrieve it with votequorum_context_get(3). no cap. π₯
β¨ RETURN VALUE β¨
this call returns the CS_OK value if it ate and left no crumbs (successful β¨), otherwise an error is returned. sad girl hours π
β¨ ERRORS β¨
here's the full roster of ways it can go wrong, bestie. no skipping, we list them all π
CS_ERR_TRY_AGAINβ resource temporarily unavailable. it's giving "try again later, she's busy" πCS_ERR_INVALID_PARAMβ invalid argument. you handed her something she can't work with, fr frCS_ERR_ACCESSβ permission denied. not your house, not your rules π«CS_ERR_LIBRARYβ the connection failed. the link said goodbye πCS_ERR_INTERRUPTβ system call interrupted by a signal. something yanked her out mid-sentenceCS_ERR_NOT_SUPPORTEDβ the requested protocol/functionality not supported. she simply does not do that πΈCS_ERR_MESSAGE_ERRORβ incorrect auth message received. the handshake was mid, honestly πCS_ERR_NO_MEMORYβ not enough memory to complete the requested task. no room in the group chat π
β¨ SEE ALSO β¨
the whole friend group π«Ά go read these too, iykyk:
votequorum_overview(3)votequorum_initialize(3)votequorum_finalize(3)votequorum_getinfo(3)votequorum_trackstart(3)votequorum_trackstop(3)votequorum_fd_get(3)votequorum_dispatch(3)votequorum_context_set(3)votequorum_context_get(3)votequorum_setexpected(3)votequorum_setvotes(3)
friendly reminder bestie: this page is a section-3 (VOTEQ...T_SET(3)) entry, and yes, she's from the corosync Man Page, dated 2026-09-04 β
and that's the whole page, periodt. π β¨ slay responsibly, my love π¦ππ
π¦ where this page comes from
- 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 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- Copyright (c) 2007,2012 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms