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

Function quorum_fd_get

lib/quorum.c:279–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279cs_error_t quorum_fd_get (
280 quorum_handle_t handle,
281 int *fd)
282{
283 cs_error_t error;
284 struct quorum_inst *quorum_inst;
285
286 error = hdb_error_to_cs(hdb_handle_get (&quorum_handle_t_db, handle, (void *)&quorum_inst));
287 if (error != CS_OK) {
288 return (error);
289 }
290
291 error = qb_to_cs_error(qb_ipcc_fd_get (quorum_inst->c, fd));
292
293 (void)hdb_handle_put (&quorum_handle_t_db, handle);
294
295 return (error);
296}
297
298
299cs_error_t quorum_context_get (

Callers 3

_cs_quorum_initFunction · 0.85
sam_initializeFunction · 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