1VOTEQUORUM_DISPATCHC(o3r)osync Cluster Engine Programmer's MaVnOuTaElQUORUM_DISPATCH(3)
2
3
4

NAME

6       votequorum_dispatch - Dispatches callbacks from the votequorum service
7

SYNOPSIS

9       #include <corosync/votequorum.h>
10
11       int votequorum_dispatch(votequorum_handle_t handle, cs_dispatch_flags_t
12       *dispatch_types);
13

DESCRIPTION

15       The votequorum_dispatch function  is  used  to  dispatch  configuration
16       changes.
17
18       Each  application  may  have several connections to the votequorum API.
19       Each application uses the handle argument to uniquely identify the con‐
20       nection.
21
22       The dispatch_types argument is used to identify the type of dispatch to
23       execute.  The possible types are defined by the structure:
24
25       typedef enum {
26               CS_DISPATCH_ONE = 1,
27               CS_DISPATCH_ALL = 2,
28               CS_DISPATCH_BLOCKING = 3,
29               CS_DISPATCH_ONE_NONBLOCKING = 4
30       } cs_dispatch_flags_t;
31
32       The dispatch values have the following meanings:
33
34       CS_DISPATCH_ONE
35              Dispatch at least one callback, blocking until the  callback  is
36              dispatched.
37
38       CS_DISPATCH_ALL
39              Dispatch  all waiting callbacks without blocking to wait for any
40              callbacks.
41
42       CS_DISPATCH_BLOCKING
43              Dispatch all callbacks blocking indefinitely.  This is used in a
44              threaded program where a thread is created, and then quorum_dis‐
45              patch() is called immediately from the created thread to execute
46              callbacks.
47
48       CS_DISPATCH_ONE_NONBLOCKING
49              Dispatch  at most one callback. If there is no pending callback,
50              CS_ERR_TRY_AGAIN is returned.
51
52

RETURN VALUE

54       This call returns the CS_OK value if successful, otherwise an error  is
55       returned.
56

ERRORS

58       CS_ERR_TRY_AGAIN Resource temporarily unavailable
59
60       CS_ERR_INVALID_PARAM Invalid argument
61
62       CS_ERR_ACCESS Permission denied
63
64       CS_ERR_LIBRARY The connection failed
65
66       CS_ERR_INTERRUPT System call interrupted by a signal
67
68       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
69
70       CS_ERR_MESSAGE_ERROR Incorrect auth message received
71
72       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
73
74

SEE ALSO

76       votequorum_overview(8),   votequorum_initialize(3),   votequorum_final‐
77       ize(3),   votequorum_getinfo(3),   votequorum_trackstart(3),   votequo‐
78       rum_trackstop(3),    votequorum_fd_get(3),   votequorum_context_set(3),
79       votequorum_context_get(3),     votequorum_setexpected(3),      votequo‐
80       rum_setvotes(3)
81
82corosync Man Page                 2018-10-30            VOTEQUORUM_DISPATCH(3)
Impressum