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

NAME

6       cmap_fd_get - Dispatches callbacks from the CMAP service
7
8

SYNOPSIS

10       #include <corosync/cmap.h>
11
12
13       cs_error_t cmap_fd_get (cmap_handle_t handle, int *fd);
14
15

DESCRIPTION

17       The  cmap_fd_get  function is used to retrieve the file descriptor that
18       may be used with the poll  system  call  to  determine  when  cmap_dis‐
19       patch(3)  won't  block.   The  handle argument may not be used directly
20       with poll because it is not the file descriptor, but instead an  inter‐
21       nal identifier used by the CMAP library.
22
23

RETURN VALUE

25       This  call returns the CS_OK value if successful, otherwise an error is
26       returned.
27
28

SEE ALSO

30       cmap_dispatch(3), cmap_overview(3)
31
32       CS_ERR_TRY_AGAIN Resource temporarily unavailable
33
34       CS_ERR_INVALID_PARAM Invalid argument
35
36       CS_ERR_ACCESS Permission denied
37
38       CS_ERR_LIBRARY The connection failed
39
40       CS_ERR_INTERRUPT System call interrupted by a signal
41
42       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
43
44       CS_ERR_MESSAGE_ERROR Incorrect auth message received
45
46       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
47
48
49
50corosync Man Page                 23/01/2012                    CMAP_FD_GET(3)
Impressum