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

Function cmap_fd_get

lib/cmap.c:212–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212cs_error_t cmap_fd_get(cmap_handle_t handle, int *fd)
213{
214 cs_error_t error;
215 struct cmap_inst *cmap_inst;
216
217 error = hdb_error_to_cs(hdb_handle_get (&cmap_handle_t_db, handle, (void *)&cmap_inst));
218 if (error != CS_OK) {
219 return (error);
220 }
221
222 error = qb_to_cs_error (qb_ipcc_fd_get (cmap_inst->c, fd));
223
224 (void)hdb_handle_put (&cmap_handle_t_db, handle);
225
226 return (error);
227}
228
229cs_error_t cmap_dispatch (
230 cmap_handle_t handle,

Callers 3

_cs_cmap_initFunction · 0.85
track_changesFunction · 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

no test coverage detected