VOTEQ...FD_GET(3)
π VOTEQ...FD_GET(3) π
okay bestie, welcome to the Corosync Cluster Engine Programmer's Manual β this one's short but she's mighty, and she's about to save your event loop from doing the most.
β¨ NAME β¨
votequorum_fd_get β she dispatches callbacks from the votequorum service, that's the whole job description π
πΈ SYNOPSIS πΈ
#include <corosync/votequorum.h>
int votequorum_fd_get(votequorum_handle_t handle, int *fd);
π¦ DESCRIPTION π¦
okay so, votequorum_fd_get is the function you call when you wanna get your hands on the file descriptor β the one you can hand over to the poll system call so you can figure out when votequorum_dispatch(3) won't block. no cap, that's literally it. π«Ά
and here's the part that gets people every single time, so listen up: you cannot just pass the handle argument straight into poll. it's giving file descriptor but it is not a file descriptor, bestie π it's actually an internal identifier that the votequorum library uses for its own business. so no, don't do that. get the real fd with this function instead. periodt. π
π₯ RETURN VALUE π₯
this call pulls up with CS_OK if everything went slay, otherwise you're getting an error back. that's the vibe check. β¨
π ERRORS π
CS_ERR_TRY_AGAINβ resource is temporarily unavailable, like she's busy rn, try again later πCS_ERR_INVALID_PARAMβ invalid argument, you gave her something cursed πCS_ERR_ACCESSβ permission denied, not your lane, bestie π«CS_ERR_LIBRARYβ the connection failed. it's giving ghosted πCS_ERR_INTERRUPTβ system call got interrupted by a signal, rude honestly β‘CS_ERR_NOT_SUPPORTEDβ the requested protocol/functionality is not supported, she simply doesn't do that πCS_ERR_MESSAGE_ERRORβ incorrect auth message received, sus πCS_ERR_NO_MEMORYβ not enough memory to complete the requested task. tragic. iconic. unavoidable. π
π§ SEE ALSO π§
votequorum_overview(3)votequorum_initialize(3)votequorum_finalize(3)votequorum_getinfo(3)votequorum_trackstart(3)votequorum_trackstop(3)votequorum_dispatch(3)votequorum_context_set(3)votequorum_context_get(3)votequorum_setexpected(3)votequorum_setvotes(3)
and that's the whole page, bestie!! this lil icon dropped as part of the corosync man pages, dated 2026-09-04. go poll something responsibly πβ¨π
π¦ 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) 2009,2012 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms