1VOTEQUORUM_CONTEXT_CSoErTo(s3y)nc Cluster Engine Programmer'sVOMTaEnQuUaOlRUM_CONTEXT_SET(3)
2
3
4
6 votequorum_context_set - Sets the context variable for a VOTEQUORUM
7 instance
8
10 #include <corosync/votequorum.h>
11
12 int votequorum_context_set(votequorum_handle_t handle, void *context);
13
15 The votequorum_context_set function is used to set the context variable
16 for a votequorum instance. It has no meaning inside libvotequorum
17 itself and will not be touched by the library. It can be retrieved
18 using votequorum_context_get(3)
19
21 This call returns the CS_OK value if successful, otherwise an error is
22 returned.
23
25 CS_ERR_TRY_AGAIN Resource temporarily unavailable
26
27 CS_ERR_INVALID_PARAM Invalid argument
28
29 CS_ERR_ACCESS Permission denied
30
31 CS_ERR_LIBRARY The connection failed
32
33 CS_ERR_INTERRUPT System call interrupted by a signal
34
35 CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
36
37 CS_ERR_MESSAGE_ERROR Incorrect auth message received
38
39 CS_ERR_NO_MEMORY Not enough memory to complete the requested task
40
41
43 votequorum_overview(3), votequorum_initialize(3), votequorum_final‐
44 ize(3), votequorum_getinfo(3), votequorum_trackstart(3), votequo‐
45 rum_trackstop(3), votequorum_fd_get(3), votequorum_dispatch(3), vote‐
46 quorum_context_set(3), votequorum_context_get(3), votequorum_setex‐
47 pected(3), votequorum_setvotes(3)
48
49corosync Man Page 2019-11-25 VOTEQUORUM_CONTEXT_SET(3)