1CPG_FD_GET(3)     Corosync Cluster Engine Programmer's Manual    CPG_FD_GET(3)
2
3
4

NAME

6       cpg_fd_get - Dispatches callbacks from the CPG service
7

SYNOPSIS

9       #include <corosync/cpg.h>
10
11       int cpg_fd_get(cpg_handle_t handle, int *fd);
12

DESCRIPTION

14       The  cpg_fd_get  function  is used to retrieve the file descriptor that
15       may be used with the poll system call to determine when cpg_dispatch(3)
16       won't  block.   The  handle argument may not be used directly with poll
17       because it is not the file descriptor, but instead an internal  identiā€
18       fier used by the CPG library.
19

RETURN VALUE

21       This  call returns the CS_OK value if successful, otherwise an error is
22       returned.
23

ERRORS

25       The errors are undocumented.
26

SEE ALSO

28       cpg_overview(8),  cpg_initialize(3),  cpg_finalize(3),   cpg_fd_get(3),
29       cpg_dispatch(3),    cpg_join(3),   cpg_leave(3),   cpg_mcast_joined(3),
30       cpg_membership_get(3)         cpg_zcb_alloc(3)          cpg_zcb_free(3)
31       cpg_zcb_mcast_joined(3)      cpg_context_get(3)      cpg_context_set(3)
32       cpg_local_get(3)
33
34
35       CS_ERR_TRY_AGAIN Resource temporarily unavailable
36
37       CS_ERR_INVALID_PARAM Invalid argument
38
39       CS_ERR_ACCESS Permission denied
40
41       CS_ERR_LIBRARY The connection failed
42
43       CS_ERR_INTERRUPT System call interrupted by a signal
44
45       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
46
47       CS_ERR_MESSAGE_ERROR Incorrect auth message received
48
49       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
50
51
52
53corosync Man Page                 2004-08-31                     CPG_FD_GET(3)
Impressum