Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 124) sorted by relevance

12345

/xen/tools/xl/
A Dxl.h25 int (*cmd_impl)(int argc, char **argv);
117 int main_info(int argc, char **argv);
132 int main_save(int argc, char **argv);
136 int main_pause(int argc, char **argv);
141 int main_list(int argc, char **argv);
153 int main_domid(int argc, char **argv);
157 int main_sysrq(int argc, char **argv);
160 int main_dmesg(int argc, char **argv);
161 int main_top(int argc, char **argv);
203 int main_remus(int argc, char **argv);
[all …]
A Dxl_misc.c54 button_press(find_domain(argv[optind]), argv[optind + 1]); in main_button_press()
69 dom = argv[optind++]; in main_rename()
70 new_name = argv[optind]; in main_rename()
102 if (argv[optind]) { in main_trigger()
126 sysrq = argv[optind]; in main_sysrq()
148 keys = argv[optind]; in main_debug_keys()
167 params = argv[optind]; in main_set_parameters()
255 core_dump_domain(find_domain(argv[optind]), argv[optind + 1]); in main_dump_core()
287 argc--; argv++; in main_config_update()
289 if (argv[1] && argv[1][0] != '-' && !strchr(argv[1], '=')) { in main_config_update()
[all …]
A Dxl_vtpm.c25 int main_vtpmattach(int argc, char **argv) in main_vtpmattach() argument
43 for (argv += optind, argc -= optind; argc > 0; ++argv, --argc) { in main_vtpmattach()
44 if (MATCH_OPTION("uuid", *argv, oparg)) { in main_vtpmattach()
49 } else if (MATCH_OPTION("backend", *argv, oparg)) { in main_vtpmattach()
52 fprintf(stderr, "unrecognized argument `%s'\n", *argv); in main_vtpmattach()
74 int main_vtpmlist(int argc, char **argv) in main_vtpmlist() argument
88 for (argv += optind, argc -= optind; argc > 0; --argc, ++argv) { in main_vtpmlist()
114 int main_vtpmdetach(int argc, char **argv) in main_vtpmdetach() argument
125 domid = find_domain(argv[optind]); in main_vtpmdetach()
127 if ( libxl_uuid_from_string(&uuid, argv[optind+1])) { in main_vtpmdetach()
[all …]
A Dxl_usb.c35 domid = find_domain(argv[optind++]); in main_usbctrl_attach()
39 for (argv += optind, argc -= optind; argc > 0; ++argv, --argc) { in main_usbctrl_attach()
64 domid = find_domain(argv[optind]); in main_usbctrl_detach()
65 devid = atoi(argv[optind+1]); in main_usbctrl_detach()
96 domid = find_domain(argv[optind++]); in main_usbdev_attach()
98 for (argv += optind, argc -= optind; argc > 0; ++argv, --argc) { in main_usbdev_attach()
124 domid = find_domain(argv[optind]); in main_usbdev_detach()
125 ctrl = atoi(argv[optind+1]); in main_usbdev_detach()
126 port = atoi(argv[optind+2]); in main_usbdev_detach()
150 int main_usblist(int argc, char **argv) in main_usblist() argument
[all …]
A Dxl_nic.c50 int main_networkattach(int argc, char **argv) in main_networkattach() argument
61 domid = find_domain(argv[optind]); in main_networkattach()
72 for (argv += optind+1, argc -= optind+1; argc > 0; ++argv, --argc) { in main_networkattach()
73 if (parse_nic_config(&nic, &config, *argv)) in main_networkattach()
95 int main_networklist(int argc, char **argv) in main_networklist() argument
109 for (argv += optind, argc -= optind; argc > 0; --argc, ++argv) { in main_networklist()
110 uint32_t domid = find_domain(*argv); in main_networklist()
133 int main_networkdetach(int argc, char **argv) in main_networkdetach() argument
143 domid = find_domain(argv[optind]); in main_networkdetach()
145 if (!strchr(argv[optind+1], ':')) { in main_networkdetach()
[all …]
A Dxl_block.c25 int main_blockattach(int argc, char **argv) in main_blockattach() argument
36 if (libxl_domain_qualifier_to_domid(ctx, argv[optind], &fe_domid) < 0) { in main_blockattach()
37 fprintf(stderr, "%s is an invalid domain identifier\n", argv[optind]); in main_blockattach()
43 (&config, argc-optind, (const char* const*)argv + optind, &disk); in main_blockattach()
60 int main_blocklist(int argc, char **argv) in main_blocklist() argument
73 for (argv += optind, argc -= optind; argc > 0; --argc, ++argv) { in main_blocklist()
75 if (libxl_domain_qualifier_to_domid(ctx, *argv, &domid) < 0) { in main_blocklist()
76 fprintf(stderr, "%s is an invalid domain identifier\n", *argv); in main_blocklist()
97 int main_blockdetach(int argc, char **argv) in main_blockdetach() argument
107 domid = find_domain(argv[optind]); in main_blockdetach()
[all …]
A Dxl_vdispl.c25 int main_vdisplattach(int argc, char **argv) in main_vdisplattach() argument
37 domid = find_domain(argv[optind++]); in main_vdisplattach()
39 for (argv += optind, argc -= optind; argc > 0; ++argv, --argc) { in main_vdisplattach()
40 rc = parse_vdispl_config(&vdispl, *argv); in main_vdisplattach()
69 int main_vdispllist(int argc, char **argv) in main_vdispllist() argument
80 for (argv += optind, argc -= optind; argc > 0; --argc, ++argv) { in main_vdispllist()
83 if (libxl_domain_qualifier_to_domid(ctx, *argv, &domid) < 0) { in main_vdispllist()
84 fprintf(stderr, "%s is an invalid domain identifier\n", *argv); in main_vdispllist()
123 int main_vdispldetach(int argc, char **argv) in main_vdispldetach() argument
133 domid = find_domain(argv[optind++]); in main_vdispldetach()
[all …]
A Dxl_vkb.c27 int main_vkbattach(int argc, char **argv) in main_vkbattach() argument
39 domid = find_domain(argv[optind++]); in main_vkbattach()
41 for (argv += optind, argc -= optind; argc > 0; ++argv, --argc) { in main_vkbattach()
42 rc = parse_vkb_config(&vkb, *argv); in main_vkbattach()
82 int main_vkblist(int argc, char **argv) in main_vkblist() argument
97 for (argv += optind, argc -= optind; argc > 0; --argc, ++argv) { in main_vkblist()
98 uint32_t domid = find_domain(*argv); in main_vkblist()
119 int main_vkbdetach(int argc, char **argv) in main_vkbdetach() argument
129 domid = find_domain(argv[optind++]); in main_vkbdetach()
130 devid = atoi(argv[optind++]); in main_vkbdetach()
A Dxl_pci.c43 int main_pcilist(int argc, char **argv) in main_pcilist() argument
52 domid = find_domain(argv[optind]); in main_pcilist()
87 int main_pcidetach(int argc, char **argv) in main_pcidetach() argument
100 domid = find_domain(argv[optind]); in main_pcidetach()
101 bdf = argv[optind + 1]; in main_pcidetach()
134 int main_pciattach(int argc, char **argv) in main_pciattach() argument
144 domid = find_domain(argv[optind]); in main_pciattach()
145 bdf = argv[optind + 1]; in main_pciattach()
148 vs = argv[optind + 2]; in main_pciattach()
219 bdf = argv[optind]; in main_pciassignable_add()
[all …]
A Dxl_vsnd.c27 int main_vsndattach(int argc, char **argv) in main_vsndattach() argument
39 domid = find_domain(argv[optind++]); in main_vsndattach()
41 for (argv += optind, argc -= optind; argc > 0; ++argv, --argc) { in main_vsndattach()
42 rc = parse_vsnd_item(&vsnd, *argv); in main_vsndattach()
101 int main_vsndlist(int argc, char **argv) in main_vsndlist() argument
112 for (argv += optind, argc -= optind; argc > 0; --argc, ++argv) { in main_vsndlist()
115 if (libxl_domain_qualifier_to_domid(ctx, *argv, &domid) < 0) { in main_vsndlist()
116 fprintf(stderr, "%s is an invalid domain identifier\n", *argv); in main_vsndlist()
165 int main_vsnddetach(int argc, char **argv) in main_vsnddetach() argument
175 domid = find_domain(argv[optind++]); in main_vsnddetach()
[all …]
/xen/tools/tests/mem-sharing/
A Dmemshrtool.c55 return usage(argv[0]); in main()
57 cmd = argv[1]; in main()
63 return usage(argv[0]); in main()
80 return usage(argv[0]); in main()
90 return usage(argv[0]); in main()
102 return usage(argv[0]); in main()
119 return usage(argv[0]); in main()
136 return usage(argv[0]); in main()
154 return usage(argv[0]); in main()
169 return usage(argv[0]); in main()
[all …]
/xen/tools/libvchan/
A Dnode.c70 void usage(char** argv) in usage() argument
135 int main(int argc, char **argv) in main() argument
141 usage(argv); in main()
142 if (!strcmp(argv[2], "read")) in main()
144 else if (!strcmp(argv[2], "write")) in main()
147 usage(argv); in main()
148 if (!strcmp(argv[1], "server")) in main()
149 ctrl = libxenvchan_server_init(NULL, atoi(argv[3]), argv[4], 0, 0); in main()
150 else if (!strcmp(argv[1], "client")) in main()
151 ctrl = libxenvchan_client_init(NULL, atoi(argv[3]), argv[4]); in main()
[all …]
A Dnode-select.c41 static void usage(char** argv) in usage() argument
45 argv[0]); in usage()
108 int main(int argc, char **argv) in main() argument
112 if (argc < 4 || argv[3][0] != '/') in main()
113 usage(argv); in main()
114 if (!strcmp(argv[1], "server")) { in main()
115 int rsiz = argc > 4 ? atoi(argv[4]) : 0; in main()
117 ctrl = libxenvchan_server_init(NULL, atoi(argv[2]), argv[3], rsiz, wsiz); in main()
118 } else if (!strcmp(argv[1], "client")) in main()
119 ctrl = libxenvchan_client_init(NULL, atoi(argv[2]), argv[3]); in main()
[all …]
/xen/tools/flask/utils/
A Dlabel-pci.c29 static void usage (int argCnt, char *argv[]) in usage() argument
31 fprintf(stderr, "Usage: %s SBDF label\n", argv[0]); in usage()
35 int main (int argCnt, char *argv[]) in main() argument
46 usage(argCnt, argv); in main()
57 sscanf(argv[1], "%x:%x:%x.%d", &seg, &bus, &dev, &fn); in main()
65 fprintf(stderr, "Unable to find device %s: %s\n", argv[1], in main()
71 ret = xc_flask_add_device(xch, sbdf, argv[2]); in main()
74 argv[1], sbdf, argv[2], ret); in main()
82 ret = xc_flask_add_ioport(xch, start, end, argv[2]); in main()
92 ret = xc_flask_add_iomem(xch, start, end, argv[2]); in main()
[all …]
A Dget-bool.c20 static void usage(char **argv) in usage() argument
22 fprintf(stderr, "Usage: %s {name|-a}\n", argv[0]); in usage()
47 int main(int argc, char **argv) in main() argument
54 usage(argv); in main()
65 if (!strcmp(argv[1], "-a")) in main()
71 err = xc_flask_getbool_byname(xch, argv[1], &curr, &pend); in main()
74 argv[1], strerror(errno), err); in main()
80 printf("%s: %d\n", argv[1], curr); in main()
82 printf("%s: %d (pending %d)\n", argv[1], curr, pend); in main()
A Dset-bool.c20 static void usage(char **argv) in usage() argument
22 fprintf(stderr, "Usage: %s name value\n", argv[0]); in usage()
38 int main(int argc, char **argv) in main() argument
45 usage(argv); in main()
47 value = str2bool(argv[2]); in main()
58 err = xc_flask_setbool(xch, argv[1], value, 1); in main()
61 argv[1], argv[2], strerror(errno), err); in main()
/xen/tools/xenstore/
A Dxenstore_client.c325 argv[0] = "/"; in perform()
529 main(int argc, char **argv) in main() argument
554 usage(MODE_unknown, 0, argv[0]); in main()
557 command = argv[1]; in main()
593 usage(mode, switch_argv, argv[0]); in main()
603 usage(mode, switch_argv, argv[0]); in main()
609 usage(mode, switch_argv, argv[0]); in main()
615 usage(mode, switch_argv, argv[0]); in main()
621 usage(mode, switch_argv, argv[0]); in main()
627 usage(mode, switch_argv, argv[0]); in main()
[all …]
A Dxenstore_control.c8 int main(int argc, char **argv) in main() argument
18 "%s <command> [<arg>...]\n", argv[0]); in main()
24 len += strlen(argv[p]) + 1; in main()
34 memcpy(par + len, argv[p], strlen(argv[p]) + 1); in main()
35 len += strlen(argv[p]) + 1; in main()
46 ret = xs_control_command(xsh, argv[1], par, len); in main()
/xen/tools/misc/
A Dxenhypfs.c33 static int xenhypfs_cat(int argc, char *argv[]) in xenhypfs_cat() argument
42 path = argv[0]; in xenhypfs_cat()
46 if (strcmp(argv[0], "-b")) in xenhypfs_cat()
49 path = argv[1]; in xenhypfs_cat()
175 int main(int argc, char *argv[]) in main() argument
184 } else if (argc >= 3 && !strcmp(argv[1], "cat")) in main()
185 ret = xenhypfs_cat(argc - 2, argv + 2); in main()
186 else if (argc == 3 && !strcmp(argv[1], "ls")) in main()
187 ret = xenhypfs_ls(argv[2]); in main()
189 ret = xenhypfs_wr(argv[2], argv[3]); in main()
[all …]
A Dxen-hptool.c28 static int help_func(int argc, char *argv[]) in help_func() argument
34 static int hp_mem_online_func(int argc, char *argv[]) in hp_mem_online_func() argument
46 sscanf(argv[0], "%lx", &mfn); in hp_mem_online_func()
66 static int hp_mem_query_func(int argc, char *argv[]) in hp_mem_query_func() argument
78 sscanf(argv[0], "%lx", &mfn); in hp_mem_query_func()
159 sscanf(argv[0], "%lx", &mfn); in hp_mem_offline_func()
276 cpu = atoi(argv[0]); in hp_cpu_online_func()
297 cpu = atoi(argv[0]); in hp_cpu_offline_func()
363 int (*function)(int argc, char *argv[]);
376 int main(int argc, char *argv[]) in main() argument
[all …]
A Dxen-livepatch.c47 static int help_func(int argc, char *argv[]) in help_func() argument
179 ssize_t len = strlen(argv[0]); in get_name()
189 strncpy(name, argv[0], len); in get_name()
208 if ( get_name(argc, argv, name) ) in upload_func()
211 filename = argv[1]; in upload_func()
515 upload_argv[1] = argv[0]; in load_func()
518 path = strdup(argv[0]); in load_func()
529 apply_argv[i] = argv[i]; in load_func()
559 int main(int argc, char *argv[]) in main() argument
575 if (!strncmp(main_options[i].name, argv[1], strlen(argv[1]))) in main()
[all …]
A Dxen-mfndump.c12 int help_func(int argc, char *argv[]) in help_func() argument
29 int dump_m2p_func(int argc, char *argv[]) in dump_m2p_func() argument
78 domid = atoi(argv[0]); in dump_p2m_func()
164 domid = atoi(argv[0]); in dump_ptes_func()
165 mfn = strtoul(argv[1], NULL, 16); in dump_ptes_func()
272 domid = atoi(argv[0]); in lookup_pte_func()
273 mfn = strtoul(argv[1], NULL, 16); in lookup_pte_func()
342 domid1 = atoi(argv[0]); in memcmp_mfns_func()
343 domid2 = atoi(argv[2]); in memcmp_mfns_func()
392 int main(int argc, char *argv[]) in main() argument
[all …]
A Dxen-diag.c29 static int help_func(int argc, char *argv[]) in help_func() argument
35 static int gnttab_query_size_func(int argc, char *argv[]) in gnttab_query_size_func() argument
46 domid = strtol(argv[0], NULL, 10); in gnttab_query_size_func()
59 int (*function)(int argc, char *argv[]);
65 int main(int argc, char *argv[]) in main() argument
82 if ( !strncmp(main_options[i].name, argv[1], strlen(argv[1])) ) in main()
99 ret = main_options[i].function(argc - 2, argv + 2); in main()
/xen/xen/tools/kconfig/
A Dpreprocess.c109 char *(*func)(int argc, char *argv[]);
114 if (!strcmp(argv[0], "y")) in do_error_if()
115 pperror("%s", argv[1]); in do_error_if()
127 printf("%s\n", argv[0]); in do_info()
149 cmd = argv[0]; in do_shell()
183 if (!strcmp(argv[0], "y")) in do_warning_if()
185 current_file->name, yylineno, argv[1]); in do_warning_if()
220 return f->func(argc, argv); in function_expand()
364 res = xstrdup(argv[n - 1]); in eval_clause()
411 argc, argv); in eval_clause()
[all …]
/xen/tools/console/testsuite/
A Dprocpipe.c64 int main(int argc, char **argv) in main() argument
79 while ((ch = getopt_long(argc, argv, sopt, lopt, &opt_ind)) != -1) { in main()
82 usage(argv[0]); in main()
85 version(argv[0]); in main()
89 argv[0]); in main()
95 "Try `%s --help' for more information.", argv[0]); in main()
108 pid1 = exec(host_stdout[1], host_stdin[0], argv[optind]); in main()
110 err(errno, "exec(%s)", argv[optind]); in main()
113 pid2 = exec(host_stdin[1], host_stdout[0], argv[optind + 1]); in main()
115 err(errno, "exec(%s)", argv[optind + 1]); in main()

Completed in 26 milliseconds

12345