1CPG_ZCB_ALLOC(3) Corosync Cluster Engine Programmer's Manual CPG_ZCB_ALLOC(3)
2
3
4
6 cpg_zcb_alloc - Allocates a zero copy buffer
7
9 #include <corosync/cpg.h>
10
11 int cpg_zcb_alloc(cpg_handle_t handle, size_t size, void **buffer);
12
14 The cpg_zcb_alloc function will allocate a zero copy buffer for use
15 with the cpg_zcb_mcast_joined(3) function. This buffer should not be
16 used in another thread while a cpg_zcb_mcast_joined operation is taking
17 place on the buffer. The buffer is allocated via operating system
18 mechanisms to avoid copying in the IPC layer.
19
20
21 The argument handle describes the handle on which the buffer will be
22 allocated.
23
24 The argument size requests a buffer of size be allocated.
25
26 The buffer argument is set to the buffer address that is allocated by
27 this operation.
28
29
31 This call returns the CS_OK value if successful, otherwise an error is
32 returned.
33
35 The errors are undocumented.
36
38 cpg_overview(3), cpg_initialize(3), cpg_finalize(3), cpg_fd_get(3),
39 cpg_dispatch(3), cpg_join(3), cpg_leave(3), cpg_mcast_joined(3),
40 cpg_membership_get(3) cpg_zcb_alloc(3) cpg_zcb_free(3)
41 cpg_zcb_mcast_joined(3) cpg_context_get(3) cpg_context_set(3)
42 cpg_local_get(3)
43
44
45 CS_ERR_TRY_AGAIN Resource temporarily unavailable
46
47 CS_ERR_INVALID_PARAM Invalid argument
48
49 CS_ERR_ACCESS Permission denied
50
51 CS_ERR_LIBRARY The connection failed
52
53 CS_ERR_INTERRUPT System call interrupted by a signal
54
55 CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
56
57 CS_ERR_MESSAGE_ERROR Incorrect auth message received
58
59 CS_ERR_NO_MEMORY Not enough memory to complete the requested task
60
61
62
63corosync Man Page 2009-04-15 CPG_ZCB_ALLOC(3)