Lines Matching refs:args

135                     const char *cmd, libxl__json_object *args,
480 const libxl__json_object *args, in qmp_prepare_cmd() argument
506 if (args) { in qmp_prepare_cmd()
508 libxl__json_object_to_yajl_gen(gc, hand, args); in qmp_prepare_cmd()
525 const char *cmd, libxl__json_object *args, in qmp_send_prepare() argument
532 buf = qmp_prepare_cmd(gc, cmd, args, ++qmp->last_id_used); in qmp_send_prepare()
557 const char *cmd, libxl__json_object *args, in qmp_send() argument
565 buf = qmp_send_prepare(gc, qmp, cmd, args, callback, opaque, context); in qmp_send()
582 libxl__json_object *args, in qmp_synchronous_send() argument
591 id = qmp_send(qmp, cmd, args, callback, opaque, &context); in qmp_synchronous_send()
739 const char *cmd, libxl__json_object *args, in qmp_run_command() argument
749 rc = qmp_synchronous_send(qmp, cmd, args, callback, opaque, qmp->timeout); in qmp_run_command()
757 libxl__json_object *args = NULL; in libxl__qmp_restore() local
759 libxl__qmp_param_add_string(gc, &args, "filename", state_file); in libxl__qmp_restore()
761 return qmp_run_command(gc, domid, "xen-load-devices-state", args, in libxl__qmp_restore()
773 libxl__json_object *args = NULL; in libxl__qmp_nbd_server_start() local
791 qmp_parameters_common_add(gc, &args, "addr", addr); in libxl__qmp_nbd_server_start()
793 return qmp_run_command(gc, domid, "nbd-server-start", args, NULL, NULL); in libxl__qmp_nbd_server_start()
798 libxl__json_object *args = NULL; in libxl__qmp_nbd_server_add() local
800 libxl__qmp_param_add_string(gc, &args, "device", disk); in libxl__qmp_nbd_server_add()
801 libxl__qmp_param_add_bool(gc, &args, "writable", true); in libxl__qmp_nbd_server_add()
803 return qmp_run_command(gc, domid, "nbd-server-add", args, NULL, NULL); in libxl__qmp_nbd_server_add()
808 libxl__json_object *args = NULL; in libxl__qmp_start_replication() local
810 libxl__qmp_param_add_bool(gc, &args, "enable", true); in libxl__qmp_start_replication()
811 libxl__qmp_param_add_bool(gc, &args, "primary", primary); in libxl__qmp_start_replication()
813 return qmp_run_command(gc, domid, "xen-set-replication", args, NULL, NULL); in libxl__qmp_start_replication()
830 libxl__json_object *args = NULL; in libxl__qmp_stop_replication() local
832 libxl__qmp_param_add_bool(gc, &args, "enable", false); in libxl__qmp_stop_replication()
833 libxl__qmp_param_add_bool(gc, &args, "primary", primary); in libxl__qmp_stop_replication()
835 return qmp_run_command(gc, domid, "xen-set-replication", args, NULL, NULL); in libxl__qmp_stop_replication()
846 libxl__json_object *args = NULL; in libxl__qmp_x_blockdev_change() local
848 libxl__qmp_param_add_string(gc, &args, "parent", parent); in libxl__qmp_x_blockdev_change()
850 libxl__qmp_param_add_string(gc, &args, "child", child); in libxl__qmp_x_blockdev_change()
852 libxl__qmp_param_add_string(gc, &args, "node", node); in libxl__qmp_x_blockdev_change()
854 return qmp_run_command(gc, domid, "x-blockdev-change", args, NULL, NULL); in libxl__qmp_x_blockdev_change()
887 libxl__json_object *args = NULL; in libxl__qmp_hmp() local
889 libxl__qmp_param_add_string(gc, &args, "command-line", command_line); in libxl__qmp_hmp()
891 return qmp_run_command(gc, domid, "human-monitor-command", args, in libxl__qmp_hmp()
911 libxl__json_object *args = NULL; in libxl_qemu_monitor_command() local
926 libxl__qmp_param_add_string(gc, &args, "command-line", command_line); in libxl_qemu_monitor_command()
927 rc = libxl__ev_qmp_send(egc, &qmcs->qmp, "human-monitor-command", args); in libxl_qemu_monitor_command()
1066 libxl__json_object *args = NULL; in dm_state_save_to_fdset() local
1075 libxl__qmp_param_add_bool(gc, &args, "live", dsps->live); in dm_state_save_to_fdset()
1076 QMP_PARAMETERS_SPRINTF(&args, "filename", "/dev/fdset/%d", fdset); in dm_state_save_to_fdset()
1077 rc = libxl__ev_qmp_send(egc, ev, "xen-save-devices-state", args); in dm_state_save_to_fdset()
1875 const char *cmd, libxl__json_object *args) in libxl__ev_qmp_send() argument
1898 ev->msg = qmp_prepare_cmd(gc, cmd, args, ev->msg_id); in libxl__ev_qmp_send()