MCPcopy Create free account
hub / github.com/corosync/corosync / cpg_fd_get

Function cpg_fd_get

lib/cpg.c:294–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294cs_error_t cpg_fd_get (
295 cpg_handle_t handle,
296 int *fd)
297{
298 cs_error_t error;
299 struct cpg_inst *cpg_inst;
300
301 error = hdb_error_to_cs (hdb_handle_get (&cpg_handle_t_db, handle, (void *)&cpg_inst));
302 if (error != CS_OK) {
303 return (error);
304 }
305
306 error = qb_to_cs_error (qb_ipcc_fd_get (cpg_inst->c, fd));
307
308 hdb_handle_put (&cpg_handle_t_db, handle);
309
310 return (error);
311}
312
313cs_error_t cpg_max_atomic_msgsize_get (
314 cpg_handle_t handle,

Callers 5

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
fd_getFunction · 0.85

Calls 4

hdb_error_to_csFunction · 0.85
hdb_handle_getFunction · 0.85
qb_to_cs_errorFunction · 0.85
hdb_handle_putFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68