1CMAP_FINALIZE(3) Corosync Cluster Engine Programmer's Manual CMAP_FINALIZE(3)
2
3
4
6 cmap_finalize - Finalize connection to CMAP
7
8
10 #include <corosync/cmap.h>
11
12
13 cs_error_t cmap_finalize (cmap_handle_t handle);
14
15
17 The cmap_finalize function is used to to close a connection to the CMAP
18 API. Once the connection is finalized, the handle may not be used again
19 by applications. No more callbacks will be dispatched from the
20 cmap_dispatch function.
21
23 This call returns the CS_OK value if successful, otherwise an error is
24 returned. CS_ERR_BAD_HANDLE error is returned when handle is invalid.
25
26
28 cmap_initialize(3), cmap_dispatch(3), cmap_overview(8)
29
30 CS_ERR_TRY_AGAIN Resource temporarily unavailable
31
32 CS_ERR_INVALID_PARAM Invalid argument
33
34 CS_ERR_ACCESS Permission denied
35
36 CS_ERR_LIBRARY The connection failed
37
38 CS_ERR_INTERRUPT System call interrupted by a signal
39
40 CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
41
42 CS_ERR_MESSAGE_ERROR Incorrect auth message received
43
44 CS_ERR_NO_MEMORY Not enough memory to complete the requested task
45
46
47
48corosync Man Page 20/01/2012 CMAP_FINALIZE(3)