Lines Matching refs:egc

28 static void run_helper(libxl__egc *egc, libxl__save_helper_state *shs,
35 static void helper_stop(libxl__egc *egc, libxl__ao_abortable*, int rc);
36 static void helper_stdout_readable(libxl__egc *egc, libxl__ev_fd *ev,
38 static void helper_exited(libxl__egc *egc, libxl__ev_child *ch,
40 static void helper_done(libxl__egc *egc, libxl__save_helper_state *shs);
44 void libxl__xc_domain_restore(libxl__egc *egc, libxl__domain_create_state *dcs, in libxl__xc_domain_restore() argument
79 run_helper(egc, shs, "--restore-domain", restore_fd, send_back_fd, 0, 0, in libxl__xc_domain_restore()
83 void libxl__xc_domain_save(libxl__egc *egc, libxl__domain_save_state *dss, in libxl__xc_domain_save() argument
103 run_helper(egc, shs, "--save-domain", dss->fd, dss->recv_fd, in libxl__xc_domain_save()
110 void libxl__xc_domain_saverestore_async_callback_done(libxl__egc *egc, in libxl__xc_domain_saverestore_async_callback_done() argument
113 shs->egc = egc; in libxl__xc_domain_saverestore_async_callback_done()
115 shs->egc = 0; in libxl__xc_domain_saverestore_async_callback_done()
154 static void run_helper(libxl__egc *egc, libxl__save_helper_state *shs, in run_helper() argument
246 helper_failed(egc, shs, rc);; in run_helper()
249 static void helper_failed(libxl__egc *egc, libxl__save_helper_state *shs, in helper_failed() argument
260 helper_done(egc, shs); in helper_failed()
267 static void helper_stop(libxl__egc *egc, libxl__ao_abortable *abrt, int rc) in helper_stop() argument
273 helper_failed(egc, shs, rc); in helper_stop()
283 void libxl__save_helper_abort(libxl__egc *egc, in libxl__save_helper_abort() argument
286 helper_stop(egc, &shs->abrt, ERROR_FAIL); in libxl__save_helper_abort()
289 static void helper_stdout_readable(libxl__egc *egc, libxl__ev_fd *ev, in helper_stdout_readable() argument
302 helper_failed(egc, shs, rc); in helper_stdout_readable()
316 shs->egc = egc; in helper_stdout_readable()
318 shs->egc = 0; in helper_stdout_readable()
322 static void helper_exited(libxl__egc *egc, libxl__ev_child *ch, in helper_exited() argument
354 helper_done(egc, shs); in helper_exited()
358 static void helper_done(libxl__egc *egc, libxl__save_helper_state *shs) in helper_done() argument
368 shs->egc = egc; in helper_done()
369 shs->completion_callback(egc, shs->caller_state, in helper_done()
371 shs->egc = 0; in helper_done()
393 libxl__egc *egc = shs->egc; in libxl__srm_callout_sendreply() local
401 helper_failed(egc, shs, ERROR_FAIL); in libxl__srm_callout_sendreply()