/linux-4.1.27/tools/power/cpupower/utils/ |
H A D | builtin.h | 4 extern int cmd_set(int argc, const char **argv); 5 extern int cmd_info(int argc, const char **argv); 6 extern int cmd_freq_set(int argc, const char **argv); 7 extern int cmd_freq_info(int argc, const char **argv); 8 extern int cmd_idle_set(int argc, const char **argv); 9 extern int cmd_idle_info(int argc, const char **argv); 10 extern int cmd_monitor(int argc, const char **argv);
|
H A D | cpupower.c | 25 static int cmd_help(int argc, const char **argv); 102 static int cmd_help(int argc, const char **argv) cmd_help() argument 105 print_man_page(argv[1]); /* exits within execlp() */ cmd_help() 119 static void handle_options(int *argc, const char ***argv) handle_options() argument 126 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { handle_options() 127 const char *param = (*argv)[x]; handle_options() 136 if (!strcmp((*argv)[x+1], "all")) handle_options() 140 (*argv)[x+1], cpus_chosen); handle_options() 168 *argv += new_argc; handle_options() 171 int main(int argc, const char *argv[]) main() argument 181 argv += 1; main() 183 handle_options(&argc, &argv); main() 185 cmd = argv[0]; main() 196 if (argc > 1 && !strcmp(argv[1], "--help")) { main() 197 argv[1] = argv[0]; main() 198 argv[0] = cmd = "help"; main() 222 ret = p->main(argc, argv); main()
|
H A D | cpupower-info.c | 30 int cmd_info(int argc, char **argv) cmd_info() argument 48 while ((ret = getopt_long(argc, argv, "b", set_opts, NULL)) != -1) { cmd_info()
|
H A D | cpupower-set.c | 31 int cmd_set(int argc, char **argv) cmd_set() argument 51 while ((ret = getopt_long(argc, argv, "b:", cmd_set()
|
H A D | cpuidle-info.c | 139 int cmd_idle_info(int argc, char **argv) cmd_idle_info() argument 147 ret = getopt_long(argc, argv, "os", info_opts, NULL); cmd_idle_info()
|
H A D | cpuidle-set.c | 28 int cmd_idle_set(int argc, char **argv) cmd_idle_set() argument 38 ret = getopt_long(argc, argv, "d:e:ED:", info_opts, NULL); cmd_idle_set()
|
/linux-4.1.27/tools/build/feature/ |
H A D | test-sync-compare-and-swap.c | 5 int main(int argc, char *argv[]) main() argument 9 argv = argv; main()
|
H A D | test-gtk2-infobar.c | 5 int main(int argc, char *argv[]) main() argument 7 gtk_init(&argc, &argv); main()
|
H A D | test-gtk2.c | 5 int main(int argc, char *argv[]) main() argument 7 gtk_init(&argc, &argv); main()
|
H A D | test-all.c | 120 int main(int argc, char *argv[]) main() argument 134 main_test_gtk2(argc, argv); main() 135 main_test_gtk2_infobar(argc, argv); main() 142 main_test_sync_compare_and_swap(argc, argv); main()
|
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/ |
H A D | lnetctl.h | 39 int ptl_initialize(int argc, char **argv); 40 int jt_ptl_network(int argc, char **argv); 41 int jt_ptl_list_nids(int argc, char **argv); 42 int jt_ptl_which_nid(int argc, char **argv); 43 int jt_ptl_print_interfaces(int argc, char **argv); 44 int jt_ptl_add_interface(int argc, char **argv); 45 int jt_ptl_del_interface(int argc, char **argv); 46 int jt_ptl_print_peers(int argc, char **argv); 47 int jt_ptl_add_peer(int argc, char **argv); 48 int jt_ptl_del_peer(int argc, char **argv); 49 int jt_ptl_print_connections(int argc, char **argv); 50 int jt_ptl_disconnect(int argc, char **argv); 51 int jt_ptl_push_connection(int argc, char **argv); 52 int jt_ptl_print_active_txs(int argc, char **argv); 53 int jt_ptl_ping(int argc, char **argv); 54 int jt_ptl_mynid(int argc, char **argv); 55 int jt_ptl_add_uuid(int argc, char **argv); 56 int jt_ptl_add_uuid_old(int argc, char **argv); /* backwards compatibility */ 57 int jt_ptl_close_uuid(int argc, char **argv); 58 int jt_ptl_del_uuid(int argc, char **argv); 59 int jt_ptl_add_route(int argc, char **argv); 60 int jt_ptl_del_route(int argc, char **argv); 61 int jt_ptl_notify_router(int argc, char **argv); 62 int jt_ptl_print_routes(int argc, char **argv); 63 int jt_ptl_fail_nid(int argc, char **argv); 64 int jt_ptl_lwt(int argc, char **argv); 65 int jt_ptl_testprotocompat(int argc, char **argv); 66 int jt_ptl_memhog(int argc, char **argv); 68 int dbg_initialize(int argc, char **argv); 69 int jt_dbg_filter(int argc, char **argv); 70 int jt_dbg_show(int argc, char **argv); 71 int jt_dbg_list(int argc, char **argv); 72 int jt_dbg_debug_kernel(int argc, char **argv); 73 int jt_dbg_debug_daemon(int argc, char **argv); 74 int jt_dbg_debug_file(int argc, char **argv); 75 int jt_dbg_clear_debug_buf(int argc, char **argv); 76 int jt_dbg_mark_debug_buf(int argc, char **argv); 77 int jt_dbg_modules(int argc, char **argv); 78 int jt_dbg_panic(int argc, char **argv);
|
/linux-4.1.27/sound/oss/ |
H A D | bin2hex.c | 5 int main( int argc, const char * argv [] ) main() 12 if(argv[1] && strcmp(argv[1],"-i")==0) main() 14 argv++; main() 25 varname = argv[1]; main()
|
H A D | hex2hex.c | 68 int main( int argc, const char * argv [] ) main() 74 if(argv[1] && strcmp(argv[1], "-i")==0) main() 76 argv++; main() 80 if(argv[1]==NULL) main() 85 varline = argv[1]; main()
|
/linux-4.1.27/tools/perf/ |
H A D | builtin.h | 16 extern int cmd_annotate(int argc, const char **argv, const char *prefix); 17 extern int cmd_bench(int argc, const char **argv, const char *prefix); 18 extern int cmd_buildid_cache(int argc, const char **argv, const char *prefix); 19 extern int cmd_buildid_list(int argc, const char **argv, const char *prefix); 20 extern int cmd_diff(int argc, const char **argv, const char *prefix); 21 extern int cmd_evlist(int argc, const char **argv, const char *prefix); 22 extern int cmd_help(int argc, const char **argv, const char *prefix); 23 extern int cmd_sched(int argc, const char **argv, const char *prefix); 24 extern int cmd_list(int argc, const char **argv, const char *prefix); 25 extern int cmd_record(int argc, const char **argv, const char *prefix); 26 extern int cmd_report(int argc, const char **argv, const char *prefix); 27 extern int cmd_stat(int argc, const char **argv, const char *prefix); 28 extern int cmd_timechart(int argc, const char **argv, const char *prefix); 29 extern int cmd_top(int argc, const char **argv, const char *prefix); 30 extern int cmd_script(int argc, const char **argv, const char *prefix); 31 extern int cmd_version(int argc, const char **argv, const char *prefix); 32 extern int cmd_probe(int argc, const char **argv, const char *prefix); 33 extern int cmd_kmem(int argc, const char **argv, const char *prefix); 34 extern int cmd_lock(int argc, const char **argv, const char *prefix); 35 extern int cmd_kvm(int argc, const char **argv, const char *prefix); 36 extern int cmd_test(int argc, const char **argv, const char *prefix); 37 extern int cmd_trace(int argc, const char **argv, const char *prefix); 38 extern int cmd_inject(int argc, const char **argv, const char *prefix); 39 extern int cmd_mem(int argc, const char **argv, const char *prefix); 40 extern int cmd_data(int argc, const char **argv, const char *prefix);
|
H A D | builtin-list.c | 19 int cmd_list(int argc, const char **argv, const char *prefix __maybe_unused) cmd_list() argument 34 argc = parse_options(argc, argv, list_options, list_usage, cmd_list() 48 if (strcmp(argv[i], "tracepoint") == 0) cmd_list() 50 else if (strcmp(argv[i], "hw") == 0 || cmd_list() 51 strcmp(argv[i], "hardware") == 0) cmd_list() 54 else if (strcmp(argv[i], "sw") == 0 || cmd_list() 55 strcmp(argv[i], "software") == 0) cmd_list() 58 else if (strcmp(argv[i], "cache") == 0 || cmd_list() 59 strcmp(argv[i], "hwcache") == 0) cmd_list() 61 else if (strcmp(argv[i], "pmu") == 0) cmd_list() 64 char *sep = strchr(argv[i], ':'), *s; cmd_list() 68 print_events(argv[i], raw_dump); cmd_list() 71 sep_idx = sep - argv[i]; cmd_list() 72 s = strdup(argv[i]); cmd_list()
|
H A D | perf.c | 146 static int handle_options(const char ***argv, int *argc, int *envchanged) handle_options() argument 151 const char *cmd = (*argv)[0]; handle_options() 188 setenv(PERF_DIR_ENVIRONMENT, (*argv)[1], 1); handle_options() 191 (*argv)++; handle_options() 203 setenv(PERF_WORK_TREE_ENVIRONMENT, (*argv)[1], 1); handle_options() 206 (*argv)++; handle_options() 217 perf_debugfs_set_path((*argv)[1]); handle_options() 220 (*argv)++; handle_options() 227 set_buildid_dir((*argv)[1]); handle_options() 230 (*argv)++; handle_options() 260 if (perf_debug_option((*argv)[1])) handle_options() 263 (*argv)++; handle_options() 270 (*argv)++; handle_options() 277 static int handle_alias(int *argcp, const char ***argv) handle_alias() argument 285 alias_command = (*argv)[0]; handle_alias() 294 sq_quote_argv(&buf, (*argv) + 1, PATH_MAX); handle_alias() 326 memcpy(new_argv + count, *argv + 1, sizeof(char *) * *argcp); handle_alias() 329 *argv = new_argv; handle_alias() 350 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) run_builtin() argument 370 status = p->fn(argc, argv, prefix); run_builtin() 404 static void handle_internal_command(int argc, const char **argv) handle_internal_command() argument 406 const char *cmd = argv[0]; handle_internal_command() 411 i = strlen(argv[0]) - strlen(ext); handle_internal_command() 412 if (i > 0 && !strcmp(argv[0] + i, ext)) { handle_internal_command() 413 char *argv0 = strdup(argv[0]); handle_internal_command() 414 argv[0] = cmd = argv0; handle_internal_command() 420 if (argc > 1 && !strcmp(argv[1], "--help")) { handle_internal_command() 421 argv[1] = argv[0]; handle_internal_command() 422 argv[0] = cmd = "help"; handle_internal_command() 429 exit(run_builtin(p, argc, argv)); handle_internal_command() 433 static void execv_dashed_external(const char **argv) execv_dashed_external() argument 439 strbuf_addf(&cmd, "perf-%s", argv[0]); execv_dashed_external() 442 * argv[0] must be the perf command, but the argv array execv_dashed_external() 444 * subsequent loop iterations. Save argv[0] and execv_dashed_external() 447 tmp = argv[0]; execv_dashed_external() 448 argv[0] = cmd.buf; execv_dashed_external() 454 status = run_command_v_opt(argv, 0); execv_dashed_external() 457 die("unable to run '%s'", argv[0]); execv_dashed_external() 462 argv[0] = tmp; execv_dashed_external() 467 static int run_argv(int *argcp, const char ***argv) run_argv() argument 473 handle_internal_command(*argcp, *argv); run_argv() 476 execv_dashed_external(*argv); run_argv() 482 if (done_alias || !handle_alias(argcp, argv)) run_argv() 508 int main(int argc, const char **argv) main() argument 517 cmd = perf_extract_argv0_path(argv[0]); main() 534 argv[0] = cmd; main() 535 handle_internal_command(argc, argv); main() 543 argv[0] = "trace"; main() 544 return cmd_trace(argc, argv, NULL); main() 552 argv++; main() 554 handle_options(&argv, &argc, NULL); main() 559 if (!prefixcmp(argv[0], "--")) main() 560 argv[0] += 2; main() 568 cmd = argv[0]; main() 588 int was_alias = run_argv(&argc, &argv); main() 596 cmd, argv[0]); main() 600 cmd = argv[0] = help_unknown_cmd(cmd); main()
|
H A D | builtin-data.c | 8 typedef int (*data_cmd_fn_t)(int argc, const char **argv, const char *prefix); 52 static int cmd_data_convert(int argc, const char **argv, cmd_data_convert() argument 72 argc = parse_options(argc, argv, options, cmd_data_convert() 96 int cmd_data(int argc, const char **argv, const char *prefix) cmd_data() argument 105 argc = parse_options_subcommand(argc, argv, data_options, data_subcommands, data_usage, cmd_data() 110 cmdstr = argv[0]; cmd_data() 116 return cmd->fn(argc, argv, prefix); for_each_cmd()
|
H A D | builtin-bench.c | 28 typedef int (*bench_fn_t)(int argc, const char **argv, const char *prefix); 155 int argc, const char **argv, const char *prefix) run_bench() 169 argv[0] = name; run_bench() 171 ret = fn(argc, argv, prefix); run_bench() 181 const char *argv[2]; run_collection() local 183 argv[1] = NULL; run_collection() 197 argv[1] = bench->name; for_each_bench() 198 run_bench(coll->name, bench->name, bench->fn, 1, argv, NULL); for_each_bench() 211 int cmd_bench(int argc, const char **argv, const char *prefix __maybe_unused) cmd_bench() argument 222 argc = parse_options(argc, argv, bench_options, bench_usage, cmd_bench() 241 if (!strcmp(argv[0], "all")) { cmd_bench() 249 if (strcmp(coll->name, argv[0])) for_each_collection() 258 if (!strcmp(argv[1], "all")) { for_each_collection() 264 if (strcmp(bench->name, argv[1])) for_each_bench() 270 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1, prefix); for_each_bench() 274 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { 279 printf("Unknown benchmark: '%s' for collection '%s'\n", argv[1], argv[0]); 284 printf("Unknown collection: '%s'\n", argv[0]); 154 run_bench(const char *coll_name, const char *bench_name, bench_fn_t fn, int argc, const char **argv, const char *prefix) run_bench() argument
|
H A D | builtin-mem.c | 24 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem) __cmd_record() argument 53 rec_argv[i] = argv[j]; __cmd_record() 157 static int report_events(int argc, const char **argv, struct perf_mem *mem) report_events() argument 183 rep_argv[i] = argv[j]; report_events() 259 int cmd_mem(int argc, const char **argv, const char *prefix __maybe_unused) cmd_mem() argument 305 argc = parse_options_subcommand(argc, argv, mem_options, mem_subcommands, cmd_mem() 308 if (!argc || !(strncmp(argv[0], "rec", 3) || mem.operation)) cmd_mem() 318 if (!strncmp(argv[0], "rec", 3)) cmd_mem() 319 return __cmd_record(argc, argv, &mem); cmd_mem() 320 else if (!strncmp(argv[0], "rep", 3)) cmd_mem() 321 return report_events(argc, argv, &mem); cmd_mem()
|
H A D | builtin-kvm.c | 1129 kvm_events_record(struct perf_kvm_stat *kvm, int argc, const char **argv) kvm_events_record() argument 1168 rec_argv[i] = argv[j]; kvm_events_record() 1195 kvm_events_report(struct perf_kvm_stat *kvm, int argc, const char **argv) kvm_events_report() argument 1218 argc = parse_options(argc, argv, kvm_events_report() 1283 int argc, const char **argv) kvm_events_live() 1347 argc = parse_options(argc, argv, live_options, kvm_events_live() 1426 static int kvm_cmd_stat(const char *file_name, int argc, const char **argv) kvm_cmd_stat() argument 1442 if (!strncmp(argv[1], "rec", 3)) kvm_cmd_stat() 1443 return kvm_events_record(&kvm, argc - 1, argv + 1); kvm_cmd_stat() 1445 if (!strncmp(argv[1], "rep", 3)) kvm_cmd_stat() 1446 return kvm_events_report(&kvm, argc - 1 , argv + 1); kvm_cmd_stat() 1449 if (!strncmp(argv[1], "live", 4)) kvm_cmd_stat() 1450 return kvm_events_live(&kvm, argc - 1 , argv + 1); kvm_cmd_stat() 1454 return cmd_stat(argc, argv, NULL); kvm_cmd_stat() 1458 static int __cmd_record(const char *file_name, int argc, const char **argv) __cmd_record() argument 1469 rec_argv[i] = argv[j]; __cmd_record() 1476 static int __cmd_report(const char *file_name, int argc, const char **argv) __cmd_report() argument 1487 rec_argv[i] = argv[j]; __cmd_report() 1495 __cmd_buildid_list(const char *file_name, int argc, const char **argv) __cmd_buildid_list() argument 1506 rec_argv[i] = argv[j]; __cmd_buildid_list() 1513 int cmd_kvm(int argc, const char **argv, const char *prefix __maybe_unused) cmd_kvm() argument 1546 argc = parse_options_subcommand(argc, argv, kvm_options, kvm_subcommands, kvm_usage, cmd_kvm() 1563 if (!strncmp(argv[0], "rec", 3)) cmd_kvm() 1564 return __cmd_record(file_name, argc, argv); cmd_kvm() 1565 else if (!strncmp(argv[0], "rep", 3)) cmd_kvm() 1566 return __cmd_report(file_name, argc, argv); cmd_kvm() 1567 else if (!strncmp(argv[0], "diff", 4)) cmd_kvm() 1568 return cmd_diff(argc, argv, NULL); cmd_kvm() 1569 else if (!strncmp(argv[0], "top", 3)) cmd_kvm() 1570 return cmd_top(argc, argv, NULL); cmd_kvm() 1571 else if (!strncmp(argv[0], "buildid-list", 12)) cmd_kvm() 1572 return __cmd_buildid_list(file_name, argc, argv); cmd_kvm() 1574 else if (!strncmp(argv[0], "stat", 4)) cmd_kvm() 1575 return kvm_cmd_stat(file_name, argc, argv); cmd_kvm() 1282 kvm_events_live(struct perf_kvm_stat *kvm, int argc, const char **argv) kvm_events_live() argument
|
H A D | builtin-evlist.c | 41 int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) cmd_evlist() argument 59 argc = parse_options(argc, argv, options, evlist_usage, 0); cmd_evlist()
|
H A D | builtin-help.c | 67 ec_process.argv = argv_ec; check_emacsclient_version() 427 int cmd_help(int argc, const char **argv, const char *prefix __maybe_unused) cmd_help() argument 462 argc = parse_options_subcommand(argc, argv, builtin_help_options, cmd_help() 472 if (!argv[0]) { cmd_help() 479 alias = alias_lookup(argv[0]); cmd_help() 480 if (alias && !is_perf_command(argv[0])) { cmd_help() 481 printf("`perf %s' is aliased to `%s'\n", argv[0], alias); cmd_help() 487 rc = show_man_page(argv[0]); cmd_help() 490 rc = show_info_page(argv[0]); cmd_help() 493 rc = show_html_page(argv[0]); cmd_help()
|
H A D | builtin-buildid-list.c | 85 int cmd_buildid_list(int argc, const char **argv, cmd_buildid_list() argument 104 argc = parse_options(argc, argv, options, buildid_list_usage, 0); cmd_buildid_list()
|
H A D | builtin-probe.c | 125 static int parse_probe_event_argv(int argc, const char **argv) parse_probe_event_argv() argument 130 found_target = set_target(argv[0]); parse_probe_event_argv() 143 len += strlen(argv[i]) + 1; parse_probe_event_argv() 153 len += sprintf(&buf[len], "%s ", argv[i]); parse_probe_event_argv() 313 __cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) __cmd_probe() argument 406 argc = parse_options(argc, argv, options, probe_usage, __cmd_probe() 409 if (strcmp(argv[0], "-") == 0) { __cmd_probe() 413 ret = parse_probe_event_argv(argc, argv); __cmd_probe() 515 int cmd_probe(int argc, const char **argv, const char *prefix) cmd_probe() argument 521 ret = __cmd_probe(argc, argv, prefix); cmd_probe()
|
H A D | builtin-lock.c | 901 static int __cmd_record(int argc, const char **argv) __cmd_record() argument 935 rec_argv[i] = argv[j]; __cmd_record() 944 int cmd_lock(int argc, const char **argv, const char *prefix __maybe_unused) cmd_lock() argument 987 argc = parse_options_subcommand(argc, argv, lock_options, lock_subcommands, cmd_lock() 992 if (!strncmp(argv[0], "rec", 3)) { cmd_lock() 993 return __cmd_record(argc, argv); cmd_lock() 994 } else if (!strncmp(argv[0], "report", 6)) { cmd_lock() 997 argc = parse_options(argc, argv, cmd_lock() 1003 } else if (!strcmp(argv[0], "script")) { cmd_lock() 1005 return cmd_script(argc, argv, prefix); cmd_lock() 1006 } else if (!strcmp(argv[0], "info")) { cmd_lock() 1008 argc = parse_options(argc, argv, cmd_lock()
|
H A D | builtin-script.c | 494 const char **argv __maybe_unused) default_start_script() 1472 static int have_cmd(int argc, const char **argv) have_cmd() argument 1481 memcpy(__argv, argv, sizeof(const char *) * argc); have_cmd() 1491 int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused) cmd_script() argument 1587 argc = parse_options_subcommand(argc, argv, options, script_subcommands, script_usage, cmd_script() 1592 if (argc > 1 && !strncmp(argv[0], "rec", strlen("rec"))) { cmd_script() 1593 rec_script_path = get_script_path(argv[1], RECORD_SUFFIX); cmd_script() 1595 return cmd_record(argc, argv, NULL); cmd_script() 1598 if (argc > 1 && !strncmp(argv[0], "rep", strlen("rep"))) { cmd_script() 1599 rep_script_path = get_script_path(argv[1], REPORT_SUFFIX); cmd_script() 1616 rec_script_path = get_script_path(argv[0], RECORD_SUFFIX); cmd_script() 1617 rep_script_path = get_script_path(argv[0], REPORT_SUFFIX); cmd_script() 1621 " script -l for available scripts.\n", argv[0]); cmd_script() 1625 if (is_top_script(argv[0])) { cmd_script() 1635 "scripts and options.\n", argv[0]); cmd_script() 1657 if (is_top_script(argv[0])) { cmd_script() 1660 if (have_cmd(argc - rep_args, &argv[rep_args]) != 0) { cmd_script() 1681 __argv[j++] = argv[i]; cmd_script() 1703 __argv[j++] = argv[i]; cmd_script() 1724 if (have_cmd(argc - 1, &argv[1]) != 0) { cmd_script() 1742 __argv[j++] = argv[i]; cmd_script() 1821 err = scripting_ops->start_script(script_name, argc, argv); cmd_script()
|
/linux-4.1.27/arch/mips/ralink/ |
H A D | prom.c | 28 static __init void prom_init_cmdline(int argc, char **argv) prom_init_cmdline() argument 37 argv = (char **) KSEG1ADDR(fw_arg1); prom_init_cmdline() 39 if (!argv) { prom_init_cmdline() 40 pr_debug("argv=%p is invalid, skipping\n", prom_init_cmdline() 41 argv); prom_init_cmdline() 46 char *p = (char *) KSEG1ADDR(argv[i]); prom_init_cmdline() 49 pr_debug("argv[%d]: %s\n", i, p); prom_init_cmdline() 59 char **argv; prom_init() local 65 prom_init_cmdline(argc, argv); prom_init()
|
/linux-4.1.27/lib/ |
H A D | argv_split.c | 2 * Helper function for splitting a string into an argv-like array. 29 * argv_free - free an argv 30 * @argv - the argument vector to be freed 32 * Frees an argv and the strings it points to. 34 void argv_free(char **argv) argv_free() argument 36 argv--; argv_free() 37 kfree(argv[0]); argv_free() 38 kfree(argv); argv_free() 43 * argv_split - split a string at whitespace, returning an argv 63 char **argv, **argv_ret; argv_split() local 71 argv = kmalloc(sizeof(*argv) * (argc + 2), gfp); argv_split() 72 if (!argv) { argv_split() 77 *argv = argv_str; argv_split() 78 argv_ret = ++argv; argv_split() 85 *argv++ = argv_str; argv_split() 88 *argv = NULL; argv_split()
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-debug.c | 74 char *argv[3]; libcfs_run_debug_log_upcall() local 81 argv[0] = lnet_debug_log_upcall; libcfs_run_debug_log_upcall() 84 argv[1] = file; /* only need to pass the path of the file */ libcfs_run_debug_log_upcall() 86 argv[2] = NULL; libcfs_run_debug_log_upcall() 88 rc = call_usermodehelper(argv[0], argv, envp, 1); libcfs_run_debug_log_upcall() 91 rc, argv[0], argv[1]); libcfs_run_debug_log_upcall() 94 argv[0], argv[1]); libcfs_run_debug_log_upcall() 98 void libcfs_run_upcall(char **argv) libcfs_run_upcall() argument 107 argv[0] = lnet_upcall; libcfs_run_upcall() 109 while (argv[argc] != NULL) libcfs_run_upcall() 114 rc = call_usermodehelper(argv[0], argv, envp, 1); libcfs_run_upcall() 117 rc, argv[0], argv[1], libcfs_run_upcall() 118 argc < 3 ? "" : ",", argc < 3 ? "" : argv[2], libcfs_run_upcall() 119 argc < 4 ? "" : ",", argc < 4 ? "" : argv[3], libcfs_run_upcall() 120 argc < 5 ? "" : ",", argc < 5 ? "" : argv[4], libcfs_run_upcall() 124 argv[0], argv[1], libcfs_run_upcall() 125 argc < 3 ? "" : ",", argc < 3 ? "" : argv[2], libcfs_run_upcall() 126 argc < 4 ? "" : ",", argc < 4 ? "" : argv[3], libcfs_run_upcall() 127 argc < 5 ? "" : ",", argc < 5 ? "" : argv[4], libcfs_run_upcall() 134 char *argv[6]; libcfs_run_lbug_upcall() local 139 argv[1] = "LBUG"; libcfs_run_lbug_upcall() 140 argv[2] = (char *)msgdata->msg_file; libcfs_run_lbug_upcall() 141 argv[3] = (char *)msgdata->msg_fn; libcfs_run_lbug_upcall() 142 argv[4] = buf; libcfs_run_lbug_upcall() 143 argv[5] = NULL; libcfs_run_lbug_upcall() 145 libcfs_run_upcall (argv); libcfs_run_lbug_upcall()
|
/linux-4.1.27/samples/bpf/ |
H A D | tracex1_user.c | 7 int main(int ac, char **argv) main() argument 12 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
|
H A D | sockex1_user.c | 9 int main(int ac, char **argv) main() argument 15 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
|
H A D | sockex2_user.c | 14 int main(int ac, char **argv) main() argument 20 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
|
H A D | tracex3_user.c | 104 int main(int ac, char **argv) main() argument 109 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main() 117 if (strcmp(argv[i], "-a") == 0) { main() 119 } else if (strcmp(argv[i], "-t") == 0) { main() 121 } else if (strcmp(argv[i], "-h") == 0) { main()
|
H A D | tracex4_user.c | 51 int main(int ac, char **argv) main() argument 56 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
|
H A D | tracex2_user.c | 57 int main(int ac, char **argv) main() argument 64 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
|
/linux-4.1.27/tools/perf/util/ |
H A D | alias.c | 26 int split_cmdline(char *cmdline, const char ***argv) argument 31 *argv = malloc(sizeof(char*) * size); 34 (*argv)[count++] = cmdline; 44 *argv = realloc(*argv, sizeof(char*) * size); 46 (*argv)[count++] = cmdline + dst; 58 zfree(argv); 70 zfree(argv);
|
H A D | exec_cmd.c | 100 static const char **prepare_perf_cmd(const char **argv) prepare_perf_cmd() argument 105 for (argc = 0; argv[argc]; argc++) prepare_perf_cmd() 110 for (argc = 0; argv[argc]; argc++) prepare_perf_cmd() 111 nargv[argc + 1] = argv[argc]; prepare_perf_cmd() 116 int execv_perf_cmd(const char **argv) { execv_perf_cmd() argument 117 const char **nargv = prepare_perf_cmd(argv); execv_perf_cmd() 130 const char *argv[MAX_ARGS + 1]; execl_perf_cmd() local 135 argv[0] = cmd; execl_perf_cmd() 138 arg = argv[argc++] = va_arg(param, char *); execl_perf_cmd() 146 argv[argc] = NULL; execl_perf_cmd() 147 return execv_perf_cmd(argv); execl_perf_cmd()
|
H A D | quote.c | 42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen) sq_quote_argv() argument 48 for (i = 0; argv[i]; ++i) { sq_quote_argv() 50 sq_quote_buf(dst, argv[i]); sq_quote_argv()
|
H A D | exec_cmd.h | 8 extern int execv_perf_cmd(const char **argv); /* NULL terminated */
|
H A D | run-command.c | 103 die("exec %s: cd to %s failed (%s)", cmd->argv[0], start_command() 116 execv_perf_cmd(cmd->argv); start_command() 118 execvp(cmd->argv[0], (char *const*) cmd->argv); start_command() 204 const char **argv, prepare_run_command_v_opt() 208 cmd->argv = argv; prepare_run_command_v_opt() 214 int run_command_v_opt(const char **argv, int opt) run_command_v_opt() argument 217 prepare_run_command_v_opt(&cmd, argv, opt); run_command_v_opt() 203 prepare_run_command_v_opt(struct child_process *cmd, const char **argv, int opt) prepare_run_command_v_opt() argument
|
H A D | string.c | 57 * Helper function for splitting a string into an argv-like array. 92 * argv_free - free an argv 93 * @argv - the argument vector to be freed 95 * Frees an argv and the strings it points to. 97 void argv_free(char **argv) argv_free() argument 100 for (p = argv; *p; p++) argv_free() 103 free(argv); argv_free() 107 * argv_split - split a string at whitespace, returning an argv 121 char **argv = zalloc(sizeof(*argv) * (argc+1)); argv_split() local 124 if (argv == NULL) argv_split() 130 argvp = argv; argv_split() 150 return argv; argv_split() 153 argv_free(argv); argv_split()
|
H A D | parse-options.c | 25 **(p->argv + 1) == '-')) { get_arg() 29 *arg = *++p->argv; get_arg() 361 int argc, const char **argv, int flags) parse_options_start() 365 ctx->argv = argv + 1; parse_options_start() 366 ctx->out = argv; parse_options_start() 388 for (; ctx->argc; ctx->argc--, ctx->argv++) { parse_options_step() 389 arg = ctx->argv[0]; parse_options_step() 393 ctx->out[ctx->cpidx++] = ctx->argv[0]; parse_options_step() 426 ctx->argv[0] = strdup(ctx->opt - 1); parse_options_step() 427 *(char *)ctx->argv[0] = '-'; parse_options_step() 441 ctx->argv++; parse_options_step() 470 ctx->out[ctx->cpidx++] = ctx->argv[0]; parse_options_step() 489 memmove(ctx->out + ctx->cpidx, ctx->argv, ctx->argc * sizeof(*ctx->out)); parse_options_end() 494 int parse_options_subcommand(int argc, const char **argv, const struct option *options, parse_options_subcommand() argument 499 perf_header__set_cmdline(argc, argv); parse_options_subcommand() 505 strbuf_addf(&buf, "perf %s [<options>] {", argv[0]); parse_options_subcommand() 517 parse_options_start(&ctx, argc, argv, flags); parse_options_subcommand() 539 if (ctx.argv[0][1] == '-') { parse_options_subcommand() 540 error("unknown option `%s'", ctx.argv[0] + 2); parse_options_subcommand() 550 int parse_options(int argc, const char **argv, const struct option *options, parse_options() argument 553 return parse_options_subcommand(argc, argv, options, NULL, parse_options() 360 parse_options_start(struct parse_opt_ctx_t *ctx, int argc, const char **argv, int flags) parse_options_start() argument
|
H A D | run-command.h | 16 const char **argv; member in struct:child_process 56 int run_command_v_opt(const char **argv, int opt);
|
H A D | parse-options.h | 145 * non-option argments in argv[]. 146 * Returns the number of arguments left in argv[]. 148 extern int parse_options(int argc, const char **argv, 152 extern int parse_options_subcommand(int argc, const char **argv, 171 * It's okay for the caller to consume argv/argc in the usual way. 176 const char **argv; member in struct:parse_opt_ctx_t 190 int argc, const char **argv, int flags);
|
H A D | quote.h | 27 extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
|
H A D | trace-event-scripting.c | 61 const char **argv __maybe_unused) python_start_script_unsupported() 126 const char **argv __maybe_unused) perl_start_script_unsupported()
|
/linux-4.1.27/scripts/basic/ |
H A D | bin2c.c | 12 int main(int argc, char *argv[]) main() argument 18 argv[1], argc > 2 ? argv[2] : ""); main() 32 printf("\t;\n\nconst int %s_size = %d;\n", argv[1], total); main()
|
/linux-4.1.27/arch/um/drivers/ |
H A D | slirp.h | 11 * argv : { init->argv[ 0 ... SLIRP_MAX_ARGS-1 ] }, 15 * argv : (char* [SLIRP_MAX_ARGS])(init->argv), 17 struct arg_list_dummy_wrapper { char *argv[SLIRP_MAX_ARGS]; }; member in struct:arg_list_dummy_wrapper
|
H A D | slirp_kern.c | 42 for (i = 0; spri->argw.argv[i] != NULL; i++) slirp_init() 43 printk(" '%s'",spri->argw.argv[i]); slirp_init() 89 init->argw.argv[i++] = str; slirp_setup() 100 init->argw.argv[i] = NULL; slirp_setup()
|
H A D | slip_user.c | 74 static int slip_tramp(char **argv, int fd) slip_tramp() argument 91 err = run_helper(slip_pre_exec, &pe_data, argv); slip_tramp() 128 char *argv[] = { "uml_net", version_buf, "slip", "up", gate_buf, slip_open() local 158 err = slip_tramp(argv, sfd); slip_open() 194 char *argv[] = { "uml_net", version_buf, "slip", "down", pri->name, slip_close() local 203 err = slip_tramp(argv, pri->slave); slip_close()
|
H A D | slirp_user.c | 37 static int slirp_tramp(char **argv, int fd) slirp_tramp() argument 44 pid = run_helper(slirp_pre_exec, &pe_data, argv); slirp_tramp() 58 err = slirp_tramp(pri->argw.argv, fds[1]); slirp_open()
|
H A D | net_user.c | 180 static int change_tramp(char **argv, char *output, int output_len) change_tramp() argument 193 pid = run_helper(change_pre_exec, &pe_data, argv); change_tramp() 212 char *argv[] = { "uml_net", version, what, dev, addr_buf, change() local 228 pid = change_tramp(argv, output, output_len); change()
|
H A D | xterm.c | 90 char *argv[] = { terminal_emulator, title_switch, title, exec_switch, xterm_open() local 94 if (access(argv[4], X_OK) < 0) xterm_open() 95 argv[4] = "port-helper"; xterm_open() 137 pid = run_helper(NULL, NULL, argv); xterm_open()
|
H A D | port_user.c | 170 char *argv[] = { "/usr/sbin/in.telnetd", "-L", port_connection() local 186 err = run_helper(port_pre_exec, &data, argv); port_connection()
|
/linux-4.1.27/tools/power/acpi/common/ |
H A D | getopt.c | 72 * PARAMETERS: argc, argv - from main 80 * the option, or it is pointed to by the next argv entry. 82 * argv entry). 86 int acpi_getopt_argument(int argc, char **argv) acpi_getopt_argument() argument 91 if (argv[acpi_gbl_optind][(int)(current_char_ptr + 1)] != '\0') { acpi_getopt_argument() 93 &argv[acpi_gbl_optind++][(int)(current_char_ptr + 1)]; acpi_getopt_argument() 100 acpi_gbl_optarg = argv[acpi_gbl_optind++]; acpi_getopt_argument() 111 * PARAMETERS: argc, argv - from main 120 int acpi_getopt(int argc, char **argv, char *opts) acpi_getopt() argument 127 argv[acpi_gbl_optind][0] != '-' || acpi_getopt() 128 argv[acpi_gbl_optind][1] == '\0') { acpi_getopt() 130 } else if (ACPI_STRCMP(argv[acpi_gbl_optind], "--") == 0) { acpi_getopt() 138 current_char = argv[acpi_gbl_optind][current_char_ptr]; acpi_getopt() 146 if (argv[acpi_gbl_optind][++current_char_ptr] == '\0') { acpi_getopt() 157 if (argv[acpi_gbl_optind][(int)(current_char_ptr + 1)] != '\0') { acpi_getopt() 159 &argv[acpi_gbl_optind++][(int) acpi_getopt() 168 acpi_gbl_optarg = argv[acpi_gbl_optind++]; acpi_getopt() 177 if (argv[acpi_gbl_optind][(int)(current_char_ptr + 1)] != '\0') { acpi_getopt() 179 &argv[acpi_gbl_optind++][(int) acpi_getopt() 184 acpi_gbl_optarg = argv[acpi_gbl_optind++]; acpi_getopt() 193 if (argv[acpi_gbl_optind][(int)(current_char_ptr + 1)] != '\0') { acpi_getopt() 195 &argv[acpi_gbl_optind][(int)(current_char_ptr + 1)]; acpi_getopt() 208 if (argv[acpi_gbl_optind][(int)(current_char_ptr + 1)] != '\0') { acpi_getopt() 210 &argv[acpi_gbl_optind][(int)(current_char_ptr + 1)]; acpi_getopt() 228 if (argv[acpi_gbl_optind][++current_char_ptr] == '\0') { acpi_getopt()
|
/linux-4.1.27/Documentation/pcmcia/ |
H A D | crc32hash.c | 23 int main(int argc, char **argv) { main() argument 29 result = crc32((unsigned char const *)argv[1], strlen(argv[1])); main()
|
/linux-4.1.27/tools/testing/selftests/efivarfs/ |
H A D | create-read.c | 11 int main(int argc, char **argv) main() argument 18 fprintf(stderr, "usage: %s <path>\n", argv[0]); main() 22 path = argv[1]; main()
|
H A D | open-unlink.c | 67 int main(int argc, char **argv) main() argument 74 fprintf(stderr, "usage: %s <path>\n", argv[0]); main() 78 path = argv[1]; main()
|
/linux-4.1.27/Documentation/timers/ |
H A D | hpet_example.c | 29 void (*func)(int argc, const char ** argv); 50 main(int argc, const char ** argv) main() argument 55 argv++; main() 64 if (!strcmp(argv[0], hpet_command[i].command)) { main() 66 argv++; main() 69 hpet_command[i].func(argc, argv); main() 73 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); main() 79 hpet_open_close(int argc, const char **argv) hpet_open_close() argument 88 fd = open(argv[0], O_RDONLY); hpet_open_close() 98 hpet_info(int argc, const char **argv) hpet_info() argument 108 fd = open(argv[0], O_RDONLY); hpet_info() 110 fprintf(stderr, "hpet_info: open of %s failed\n", argv[0]); hpet_info() 130 hpet_poll(int argc, const char **argv) hpet_poll() argument 145 freq = atoi(argv[1]); hpet_poll() 146 iterations = atoi(argv[2]); hpet_poll() 148 fd = open(argv[0], O_RDONLY); hpet_poll() 151 fprintf(stderr, "hpet_poll: open of %s failed\n", argv[0]); hpet_poll() 222 hpet_fasync(int argc, const char **argv) hpet_fasync() argument 242 fd = open(argv[0], O_RDONLY); hpet_fasync() 245 fprintf(stderr, "hpet_fasync: failed to open %s\n", argv[0]); hpet_fasync() 257 freq = atoi(argv[1]); hpet_fasync() 258 iterations = atoi(argv[2]); hpet_fasync()
|
/linux-4.1.27/tools/perf/bench/ |
H A D | bench.h | 28 extern int bench_numa(int argc, const char **argv, const char *prefix); 29 extern int bench_sched_messaging(int argc, const char **argv, const char *prefix); 30 extern int bench_sched_pipe(int argc, const char **argv, const char *prefix); 31 extern int bench_mem_memcpy(int argc, const char **argv, 33 extern int bench_mem_memset(int argc, const char **argv, const char *prefix); 34 extern int bench_futex_hash(int argc, const char **argv, const char *prefix); 35 extern int bench_futex_wake(int argc, const char **argv, const char *prefix); 36 extern int bench_futex_requeue(int argc, const char **argv, const char *prefix);
|
H A D | mem-memcpy.c | 220 static int bench_mem_common(int argc, const char **argv, bench_mem_common() argument 228 argc = parse_options(argc, argv, options, bench_mem_common() 336 int bench_mem_memcpy(int argc, const char **argv, bench_mem_memcpy() argument 346 return bench_mem_common(argc, argv, prefix, &info); bench_mem_memcpy() 423 int bench_mem_memset(int argc, const char **argv, bench_mem_memset() argument 433 return bench_mem_common(argc, argv, prefix, &info); bench_mem_memset()
|
H A D | sched-pipe.c | 78 int bench_sched_pipe(int argc, const char **argv, const char *prefix __maybe_unused) bench_sched_pipe() argument 95 argc = parse_options(argc, argv, options, bench_sched_pipe_usage, 0); bench_sched_pipe()
|
/linux-4.1.27/tools/perf/ui/browsers/ |
H A D | header.c | 81 static int ui__list_menu(int argc, char * const argv[]) ui__list_menu() argument 84 .entries = (void *)argv, ui__list_menu() 97 char **argv; tui__header_window() local 110 argv = calloc(argc + 1, sizeof(*argv)); tui__header_window() 111 if (argv == NULL) tui__header_window() 114 argv[0] = pos = ptr; tui__header_window() 117 argv[i] = pos; tui__header_window() 122 ui__list_menu(argc, argv); tui__header_window() 125 free(argv); tui__header_window()
|
/linux-4.1.27/tools/cgroup/ |
H A D | cgroup_event_listener.c | 21 int main(int argc, char **argv) main() argument 33 cfd = open(argv[1], O_RDONLY); main() 35 err(1, "Cannot open %s", argv[1]); main() 38 dirname(argv[1])); main() 50 ret = snprintf(line, LINE_MAX, "%d %d %s", efd, cfd, argv[2]); main() 78 printf("%s %s: crossed\n", argv[1], argv[2]); main()
|
/linux-4.1.27/tools/perf/scripts/python/ |
H A D | sctop.py | 26 if len(sys.argv) > 3: 29 if len(sys.argv) > 2: 30 for_comm = sys.argv[1] 31 interval = int(sys.argv[2]) 32 elif len(sys.argv) > 1: 34 interval = int(sys.argv[1]) 36 for_comm = sys.argv[1]
|
H A D | failed-syscalls-by-pid.py | 23 if len(sys.argv) > 2: 26 if len(sys.argv) > 1: 28 for_pid = int(sys.argv[1]) 30 for_comm = sys.argv[1]
|
H A D | syscall-counts-by-pid.py | 22 if len(sys.argv) > 2: 25 if len(sys.argv) > 1: 27 for_pid = int(sys.argv[1]) 29 for_comm = sys.argv[1]
|
H A D | syscall-counts.py | 22 if len(sys.argv) > 2: 25 if len(sys.argv) > 1: 26 for_comm = sys.argv[1]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_usif.c | 121 usif_notify_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) usif_notify_new() argument 151 ret = nvif_client_ioctl(client, argv, argc); usif_notify_new() 165 usif_notify_del(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) usif_notify_del() argument 181 ret = nvif_client_ioctl(client, argv, argc); usif_notify_del() 188 usif_notify_get(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) usif_notify_get() argument 217 ret = nvif_client_ioctl(client, argv, argc); usif_notify_get() 227 usif_notify_put(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) usif_notify_put() argument 243 ret = nvif_client_ioctl(client, argv, argc); usif_notify_put() 264 usif_object_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) usif_object_new() argument 283 ret = nvif_client_ioctl(client, argv, argc); usif_object_new() 302 } *argv = data; usif_ioctl() local 307 if (ret = -ENOMEM, !argv) usif_ioctl() 309 if (ret = -EFAULT, copy_from_user(argv, user, size)) usif_ioctl() 312 if (nvif_unpack(argv->v0, 0, 0, true)) { usif_ioctl() 314 owner = argv->v0.owner; usif_ioctl() 315 argv->v0.owner = NVDRM_OBJECT_USIF; usif_ioctl() 320 switch (argv->v0.type) { usif_ioctl() 323 argv->v0.owner = NVIF_IOCTL_V0_OWNER_ANY; usif_ioctl() 324 ret = usif_object_new(filp, data, size, argv, argc); usif_ioctl() 327 ret = usif_notify_new(filp, data, size, argv, argc); usif_ioctl() 330 ret = usif_notify_del(filp, data, size, argv, argc); usif_ioctl() 333 ret = usif_notify_get(filp, data, size, argv, argc); usif_ioctl() 336 ret = usif_notify_put(filp, data, size, argv, argc); usif_ioctl() 339 ret = nvif_client_ioctl(client, argv, argc); usif_ioctl() 342 if (argv->v0.route == NVDRM_OBJECT_USIF) { usif_ioctl() 343 object = (void *)(unsigned long)argv->v0.token; usif_ioctl() 344 argv->v0.route = object->route; usif_ioctl() 345 argv->v0.token = object->token; usif_ioctl() 346 if (ret == 0 && argv->v0.type == NVIF_IOCTL_V0_DEL) { usif_ioctl() 351 argv->v0.route = NVIF_IOCTL_V0_ROUTE_HIDDEN; usif_ioctl() 352 argv->v0.token = 0; usif_ioctl() 354 argv->v0.owner = owner; usif_ioctl() 357 if (copy_to_user(user, argv, argc)) usif_ioctl() 360 kfree(argv); usif_ioctl()
|
/linux-4.1.27/arch/mips/boot/compressed/ |
H A D | calc_vmlinuz_load_addr.c | 17 int main(int argc, char *argv[]) main() argument 24 argv[0]); main() 28 if (stat(argv[1], &sb) == -1) { main() 35 if (sscanf(argv[2], "%llx", &vmlinux_load_addr) != 1) { main()
|
/linux-4.1.27/tools/power/acpi/tools/ec/ |
H A D | ec_access.c | 54 void parse_opts(int argc, char *argv[]) parse_opts() argument 58 while ((c = getopt(argc, argv, "rs:b:w:v:h")) != -1) { parse_opts() 63 usage(argv[0], EXIT_FAILURE); parse_opts() 68 usage(argv[0], EXIT_FAILURE); parse_opts() 73 usage(argv[0], EXIT_FAILURE); parse_opts() 79 usage(argv[0], EXIT_FAILURE); parse_opts() 85 usage(argv[0], EXIT_FAILURE); parse_opts() 93 usage(argv[0], EXIT_SUCCESS); parse_opts() 96 usage(argv[0], EXIT_FAILURE); parse_opts() 105 usage(argv[0], EXIT_FAILURE); parse_opts() 111 usage(argv[0], EXIT_FAILURE); parse_opts() 120 usage(argv[0], EXIT_FAILURE); parse_opts() 207 int main(int argc, char *argv[]) main() argument 212 parse_opts(argc, argv); main() 219 usage(argv[0], EXIT_FAILURE); main() 230 usage(argv[0], EXIT_FAILURE); main()
|
/linux-4.1.27/arch/x86/boot/compressed/ |
H A D | mkpiggy.c | 34 int main(int argc, char *argv[]) main() argument 45 argv[0]); main() 51 f = fopen(argv[1], "r"); main() 53 perror(argv[1]); main() 59 perror(argv[1]); main() 63 perror(argv[1]); main() 79 run_size = atoi(argv[2]); main() 96 printf(".incbin \"%s\"\n", argv[1]); main()
|
/linux-4.1.27/arch/mips/dec/prom/ |
H A D | cmdline.c | 17 void __init prom_init_cmdline(s32 argc, s32 *argv, u32 magic) prom_init_cmdline() argument 30 arg = (void *)(long)(argv[i]); prom_init_cmdline()
|
H A D | init.c | 94 s32 *argv = (void *)fw_arg1; prom_init() local 135 prom_init_cmdline(argc, argv, magic); prom_init()
|
/linux-4.1.27/samples/seccomp/ |
H A D | dropper.c | 52 int main(int argc, char **argv) main() argument 62 if (install_filter(strtol(argv[1], NULL, 0), strtol(argv[2], NULL, 0), main() 63 strtol(argv[3], NULL, 0))) main() 65 execv(argv[4], &argv[4]); main()
|
/linux-4.1.27/tools/usb/usbip/src/ |
H A D | usbip.h | 27 int usbip_attach(int argc, char *argv[]); 28 int usbip_detach(int argc, char *argv[]); 29 int usbip_list(int argc, char *argv[]); 30 int usbip_bind(int argc, char *argv[]); 31 int usbip_unbind(int argc, char *argv[]); 32 int usbip_port_show(int argc, char *argv[]);
|
H A D | usbip.c | 32 static int usbip_help(int argc, char *argv[]); 33 static int usbip_version(int argc, char *argv[]); 48 int (*fn)(int argc, char *argv[]); 105 static int usbip_help(int argc, char *argv[]) usbip_help() argument 111 if (argc > 1 && argv++) { usbip_help() 113 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { usbip_help() 130 static int usbip_version(int argc, char *argv[]) usbip_version() argument 133 (void) argv; usbip_version() 139 static int run_command(const struct command *cmd, int argc, char *argv[]) run_command() argument 142 return cmd->fn(argc, argv); run_command() 145 int main(int argc, char *argv[]) main() argument 161 opt = getopt_long(argc, argv, "+dlt:", opts, NULL); main() 185 cmd = argv[optind]; main() 190 argv += optind; main() 192 rc = run_command(&cmds[i], argc, argv); main()
|
H A D | usbip_port.c | 48 __attribute__((unused)) char *argv[]) usbip_port_show() 47 usbip_port_show(__attribute__((unused)) int argc, __attribute__((unused)) char *argv[]) usbip_port_show() argument
|
H A D | usbip_detach.c | 82 int usbip_detach(int argc, char *argv[]) usbip_detach() argument 92 opt = getopt_long(argc, argv, "p:", opts, NULL); usbip_detach()
|
H A D | usbip_unbind.c | 112 int usbip_unbind(int argc, char *argv[]) usbip_unbind() argument 123 opt = getopt_long(argc, argv, "b:", opts, NULL); usbip_unbind()
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | mktree.c | 41 int main(int argc, char *argv[]) main() argument 50 fprintf(stderr, "usage: %s <zImage-file> <boot-image> <load address> <entry point>\n",argv[0]); main() 54 if (stat(argv[1], &st) < 0) { main() 64 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); main() 65 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); main() 81 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { main() 86 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { main() 100 argv[1]); main() 105 fprintf(stderr, "%s is not an ELF image\n", argv[1]); main() 110 fprintf(stderr, "%s failed to seek in ELF image\n", argv[1]); main()
|
/linux-4.1.27/arch/mn10300/boot/tools/ |
H A D | build.c | 69 int main(int argc, char **argv) main() argument 76 if (argc > 2 && !strcmp(argv[1], "-b")) { main() 78 argc--, argv++; main() 83 if (!strcmp(argv[4], "CURRENT")) { main() 90 } else if (strcmp(argv[4], "FLOPPY")) { main() 91 if (stat(argv[4], &sb)) { main() 92 perror(argv[4]); main() 107 file_open(argv[1]); main() 121 file_open(argv[2]); main() 145 file_open(argv[3]); main() 147 die("Unable to stat `%s': %m", argv[3]); main() 166 die("Error reading %s: %m", argv[3]); main() 168 die("%s: Unexpected EOF", argv[3]); main()
|
/linux-4.1.27/kernel/debug/kdb/ |
H A D | kdb_bt.c | 64 * argv argument vector 105 kdb_bt(int argc, const char **argv) kdb_bt() argument 117 if (strcmp(argv[0], "bta") == 0) { kdb_bt() 120 unsigned long mask = kdb_task_state_string(argc ? argv[1] : kdb_bt() 139 } else if (strcmp(argv[0], "btp") == 0) { 144 diag = kdbgetularg((char *)argv[1], &pid); 154 } else if (strcmp(argv[0], "btt") == 0) { 157 diag = kdbgetularg((char *)argv[1], &addr); 162 } else if (strcmp(argv[0], "btc") == 0) { 169 diag = kdbgetularg((char *)argv[1], &cpu); 173 /* Recursive use of kdb_parse, do not use argv after 175 argv = NULL; 197 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr,
|
H A D | kdb_bp.c | 48 static int kdb_parsebp(int argc, const char **argv, int *nextargp, kdb_bp_t *bp) kdb_parsebp() argument 55 if (strncasecmp(argv[nextarg], "datar", sizeof("datar")) == 0) kdb_parsebp() 57 else if (strncasecmp(argv[nextarg], "dataw", sizeof("dataw")) == 0) kdb_parsebp() 59 else if (strncasecmp(argv[nextarg], "inst", sizeof("inst")) == 0) kdb_parsebp() 71 diag = kdbgetularg((char *)argv[nextarg], kdb_parsebp() 265 * argc Count of arguments in argv 266 * argv Space delimited command line arguments 279 static int kdb_bp(int argc, const char **argv) kdb_bp() argument 304 diag = kdbgetaddrarg(argc, argv, &nextarg, &template.bp_addr, kdb_bp() 322 if (strcmp(argv[0], "bph") == 0) { kdb_bp() 324 diag = kdb_parsebp(argc, argv, &nextarg, &template); kdb_bp() 369 * argc Count of arguments in argv 370 * argv Space delimited command line arguments 379 static int kdb_bc(int argc, const char **argv) kdb_bc() argument 394 if (strcmp(argv[0], "be") == 0) kdb_bc() 396 else if (strcmp(argv[0], "bd") == 0) kdb_bc() 404 if (strcmp(argv[1], "*") == 0) { kdb_bc() 408 diag = kdbgetularg(argv[1], &addr); kdb_bc() 495 * argv Argument vector 508 static int kdb_ss(int argc, const char **argv) kdb_ss() argument
|
H A D | kdb_main.c | 380 int kdb_set(int argc, const char **argv) kdb_set() argument 388 * set var=value argv[1]="var", argv[2]="value" kdb_set() 389 * set var = value argv[1]="var", argv[2]="=", argv[3]="value" kdb_set() 393 argv[2] = argv[3]; kdb_set() 403 if (strcmp(argv[1], "KDBDEBUG") == 0) { kdb_set() 407 debugflags = simple_strtoul(argv[2], &cp, 0); kdb_set() 408 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { kdb_set() 410 argv[2]); kdb_set() 421 * Tokenizer squashed the '=' sign. argv[1] is variable kdb_set() 422 * name, argv[2] = value. kdb_set() 424 varlen = strlen(argv[1]); kdb_set() 425 vallen = strlen(argv[2]); kdb_set() 430 sprintf(ep, "%s=%s", argv[1], argv[2]); kdb_set() 436 && ((strncmp(__env[i], argv[1], varlen) == 0) kdb_set() 479 * argc - count of arguments in argv 480 * argv - argument vector 481 * *nextarg - index to next unparsed argument in argv[] 487 * *nextarg - index to next unparsed argument in argv[] 492 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, kdbgetaddrarg() argument 526 symname = (char *)argv[*nextarg]; kdbgetaddrarg() 557 diag = kdbgetularg(argv[*nextarg], &addr); kdbgetaddrarg() 584 if ((argv[*nextarg][0] != '+') kdbgetaddrarg() 585 && (argv[*nextarg][0] != '-')) { kdbgetaddrarg() 591 positive = (argv[*nextarg][0] == '+'); kdbgetaddrarg() 606 cp = (char *)argv[*nextarg]; kdbgetaddrarg() 653 * argv argument vector 670 static int kdb_exec_defcmd(int argc, const char **argv); 705 static int kdb_defcmd(int argc, const char **argv) kdb_defcmd() argument 739 s->name = kdb_strdup(argv[1], GFP_KDB); kdb_defcmd() 742 s->usage = kdb_strdup(argv[2], GFP_KDB); kdb_defcmd() 745 s->help = kdb_strdup(argv[3], GFP_KDB); kdb_defcmd() 749 strcpy(s->usage, argv[2]+1); kdb_defcmd() 753 strcpy(s->help, argv[3]+1); kdb_defcmd() 767 kdb_printf("Could not allocate new defcmd_set entry for %s\n", argv[1]); kdb_defcmd() 777 * argv argument vector 781 static int kdb_exec_defcmd(int argc, const char **argv) kdb_exec_defcmd() argument 788 if (strcmp(s->name, argv[0]) == 0) kdb_exec_defcmd() 793 argv[0]); kdb_exec_defcmd() 797 /* Recursive use of kdb_parse, do not use argv after kdb_exec_defcmd() 799 argv = NULL; kdb_exec_defcmd() 885 * will overwrite argv and cbuf. It is the caller's 886 * responsibility to save their argv if they recursively call 911 static char *argv[MAXARGC]; local 958 argv[argc++] = cpp; 994 int result = kdb_defcmd2(cmdstr, argv[0]); 997 *(argv[0]) = '\0'; 1001 if (argv[0][0] == '-' && argv[0][1] && 1002 (argv[0][1] < '0' || argv[0][1] > '9')) { 1004 ++argv[0]; 1015 && (strlen(argv[0]) <= tp->cmd_minlen)) { for_each_kdbcmd() 1016 if (strncmp(argv[0], for_each_kdbcmd() 1023 if (strcmp(argv[0], tp->cmd_name) == 0) for_each_kdbcmd() 1036 if (strncmp(argv[0], for_each_kdbcmd() 1052 result = (*tp->cmd_func)(argc-1, (const char **)argv); 1061 if (argv[argc]) 1062 *(argv[argc]) = '\0'; 1079 if (kdbgetaddrarg(0, (const char **)argv, &nextarg, 1084 kdb_printf("%s = ", argv[0]); 1119 static int kdb_reboot(int argc, const char **argv) kdb_reboot() argument 1554 static int kdb_md(int argc, const char **argv) kdb_md() argument 1575 if (strcmp(argv[0], "mdr") == 0) { kdb_md() 1579 } else if (isdigit(argv[0][2])) { kdb_md() 1580 bytesperword = (int)(argv[0][2] - '0'); kdb_md() 1588 if (!argv[0][3]) kdb_md() 1590 else if (argv[0][3] == 'c' && argv[0][4]) { kdb_md() 1592 repeat = simple_strtoul(argv[0] + 4, &p, 10); kdb_md() 1597 } else if (strcmp(argv[0], "md") == 0) kdb_md() 1599 else if (strcmp(argv[0], "mds") == 0) kdb_md() 1601 else if (strcmp(argv[0], "mdp") == 0) { kdb_md() 1620 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, kdb_md() 1628 diag = kdbgetularg(argv[nextarg], &val); kdb_md() 1635 diag = kdbgetularg(argv[nextarg+1], &val); kdb_md() 1641 if (strcmp(argv[0], "mdr") == 0) kdb_md() 1683 if (strcmp(argv[0], "mds") == 0) { kdb_md() 1737 static int kdb_mm(int argc, const char **argv) kdb_mm() argument 1746 if (argv[0][2] && !isdigit(argv[0][2])) kdb_mm() 1753 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); kdb_mm() 1759 diag = kdbgetaddrarg(argc, argv, &nextarg, &contents, NULL, NULL); kdb_mm() 1766 width = argv[0][2] ? (argv[0][2] - '0') : (KDB_WORD_SIZE); kdb_mm() 1780 static int kdb_go(int argc, const char **argv) kdb_go() argument 1795 diag = kdbgetaddrarg(argc, argv, &nextarg, kdb_go() 1825 static int kdb_rd(int argc, const char **argv) kdb_rd() argument 1895 static int kdb_rm(int argc, const char **argv) kdb_rm() argument 1911 rname = argv[1]; kdb_rm() 1915 diag = kdbgetu64arg(argv[2], ®64); kdb_rm() 1962 static int kdb_sr(int argc, const char **argv) kdb_sr() argument 1971 __handle_sysrq(*argv[1], check_mask); kdb_sr() 1987 static int kdb_ef(int argc, const char **argv) kdb_ef() argument 1998 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); kdb_ef() 2011 static int kdb_lsmod(int argc, const char **argv) kdb_lsmod() argument 2058 static int kdb_env(int argc, const char **argv) kdb_env() argument 2079 static int kdb_dmesg(int argc, const char **argv) kdb_dmesg() argument 2095 lines = simple_strtol(argv[1], &cp, 0); kdb_dmesg() 2099 adjust = simple_strtoul(argv[2], &cp, 0); kdb_dmesg() 2166 static int kdb_disable_nmi(int argc, const char *argv[]) kdb_disable_nmi() argument 2239 static int kdb_cpu(int argc, const char **argv) kdb_cpu() argument 2252 diag = kdbgetularg(argv[1], &cpunum); kdb_cpu() 2334 static int kdb_ps(int argc, const char **argv) kdb_ps() argument 2344 mask = kdb_task_state_string(argc ? argv[1] : NULL); kdb_ps() 2370 static int kdb_pid(int argc, const char **argv) kdb_pid() argument 2380 if (strcmp(argv[1], "R") == 0) { kdb_pid() 2383 diag = kdbgetularg(argv[1], &val); kdb_pid() 2402 static int kdb_kgdb(int argc, const char **argv) kdb_kgdb() argument 2410 static int kdb_help(int argc, const char **argv) kdb_help() argument 2437 static int kdb_kill(int argc, const char **argv) kdb_kill() argument 2447 sig = simple_strtol(argv[1], &endp, 0); kdb_kill() 2456 pid = simple_strtol(argv[2], &endp, 0); kdb_kill() 2538 static int kdb_summary(int argc, const char **argv) kdb_summary() argument 2593 static int kdb_per_cpu(int argc, const char **argv) kdb_per_cpu() argument 2602 diag = kdbgetaddrarg(argc, argv, &nextarg, &symaddr, NULL, NULL); kdb_per_cpu() 2607 diag = kdbgetularg(argv[2], &bytesperword); kdb_per_cpu() 2617 diag = kdbgetularg(argv[3], &whichcpu); kdb_per_cpu() 2663 static int kdb_grep_help(int argc, const char **argv) kdb_grep_help() argument
|
/linux-4.1.27/tools/net/ |
H A D | bpf_asm.c | 28 int main(int argc, char **argv) main() argument 35 if (!strncmp("-c", argv[i], 2)) { main() 40 fp = fopen(argv[i], "r"); main()
|
/linux-4.1.27/scripts/selinux/genheaders/ |
H A D | genheaders.c | 41 int main(int argc, char *argv[]) main() argument 49 progname = argv[0]; main() 54 fout = fopen(argv[1], "w"); main() 57 argv[1], strerror(errno)); main() 114 fout = fopen(argv[2], "w"); main() 117 argv[2], strerror(errno)); main()
|
/linux-4.1.27/arch/um/os-Linux/ |
H A D | helper.c | 20 char **argv; member in struct:helper_data 28 char **argv = data->argv; helper_child() local 33 err = execvp_noalloc(data->buf, argv[0], argv); helper_child() 42 int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv) run_helper() argument 70 data.argv = argv; run_helper()
|
H A D | execvp.c | 39 int execvp_noalloc(char *buf, const char *file, char *const argv[]) execvp_noalloc() argument 47 execv(file, argv); execvp_noalloc() 83 execv(startp, argv); execvp_noalloc() 133 int main(int argc, char**argv) main() 142 argv++; main() 143 if (ret = execvp_noalloc(buf, argv[0], argv)) { main()
|
H A D | main.c | 117 int __init main(int argc, char **argv, char **envp) main() argument 130 perror("Mallocing argv"); main() 134 new_argv[i] = strdup(argv[i]); main() 155 ret = linux_main(argc, argv); main()
|
/linux-4.1.27/samples/kdb/ |
H A D | kdb_hello.c | 15 * All kdb shell command call backs receive argc and argv, where 16 * argv[0] is the command the end user typed 18 static int kdb_hello_cmd(int argc, const char **argv) kdb_hello_cmd() argument 24 kdb_printf("Hello %s.\n", argv[1]); kdb_hello_cmd()
|
/linux-4.1.27/scripts/ |
H A D | bloat-o-meter | 12 if len(sys.argv) != 3: 13 sys.stderr.write("usage: %s file1 file2\n" % sys.argv[0]) 31 old = getsizes(sys.argv[1]) 32 new = getsizes(sys.argv[2])
|
H A D | diffconfig | 71 if ("-h" in sys.argv or "--help" in sys.argv): 75 if "-m" in sys.argv: 77 sys.argv.remove("-m") 79 argc = len(sys.argv) 92 configa_filename = sys.argv[1] 93 configb_filename = sys.argv[2]
|
H A D | conmakehash.c | 79 int main(int argc, char *argv[]) main() argument 90 usage(argv[0]); main() 92 if ( !strcmp(argv[1],"-") ) main() 99 ctbl = fopen(tblname = argv[1], "r"); main() 259 {\n\t", argv[1], fontlen); main()
|
H A D | show_delta | 83 for arg in sys.argv[1:]: 85 base_str = sys.argv[sys.argv.index("-b")+1]
|
/linux-4.1.27/fs/nilfs2/ |
H A D | ioctl.c | 43 * @argv: vector of arguments from userspace 48 * calling dofunc() function on the basis of @argv argument. 61 struct nilfs_argv *argv, int dir, nilfs_ioctl_wrap_copy() 67 void __user *base = (void __user *)(unsigned long)argv->v_base; nilfs_ioctl_wrap_copy() 73 if (argv->v_nmembs == 0) nilfs_ioctl_wrap_copy() 76 if (argv->v_size > PAGE_SIZE) nilfs_ioctl_wrap_copy() 80 * Reject pairs of a start item position (argv->v_index) and a nilfs_ioctl_wrap_copy() 81 * total count (argv->v_nmembs) which leads position 'pos' to nilfs_ioctl_wrap_copy() 84 if (argv->v_index > ~(__u64)0 - argv->v_nmembs) nilfs_ioctl_wrap_copy() 90 maxmembs = PAGE_SIZE / argv->v_size; nilfs_ioctl_wrap_copy() 94 pos = argv->v_index; nilfs_ioctl_wrap_copy() 95 for (i = 0; i < argv->v_nmembs; i += n) { nilfs_ioctl_wrap_copy() 96 n = (argv->v_nmembs - i < maxmembs) ? nilfs_ioctl_wrap_copy() 97 argv->v_nmembs - i : maxmembs; nilfs_ioctl_wrap_copy() 99 copy_from_user(buf, base + argv->v_size * i, nilfs_ioctl_wrap_copy() 100 argv->v_size * n)) { nilfs_ioctl_wrap_copy() 105 nr = dofunc(nilfs, &pos, argv->v_flags, buf, argv->v_size, nilfs_ioctl_wrap_copy() 112 copy_to_user(base + argv->v_size * i, buf, nilfs_ioctl_wrap_copy() 113 argv->v_size * nr)) { nilfs_ioctl_wrap_copy() 123 argv->v_nmembs = total; nilfs_ioctl_wrap_copy() 535 struct nilfs_argv argv; nilfs_ioctl_get_bdescs() local 538 if (copy_from_user(&argv, argp, sizeof(argv))) nilfs_ioctl_get_bdescs() 541 if (argv.v_size != sizeof(struct nilfs_bdesc)) nilfs_ioctl_get_bdescs() 544 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), nilfs_ioctl_get_bdescs() 549 if (copy_to_user(argp, &argv, sizeof(argv))) nilfs_ioctl_get_bdescs() 622 * @argv: vector of arguments from userspace 633 struct nilfs_argv *argv, void *buf) nilfs_ioctl_move_blocks() 635 size_t nmembs = argv->v_nmembs; nilfs_ioctl_move_blocks() 700 * @argv: vector of arguments from userspace 717 struct nilfs_argv *argv, void *buf) nilfs_ioctl_delete_checkpoints() 719 size_t nmembs = argv->v_nmembs; nilfs_ioctl_delete_checkpoints() 736 * @argv: vector of arguments from userspace 740 * the virtual block numbers specified by @buf and @argv->v_nmembs. 752 struct nilfs_argv *argv, void *buf) nilfs_ioctl_free_vblocknrs() 754 size_t nmembs = argv->v_nmembs; nilfs_ioctl_free_vblocknrs() 765 * @argv: vector of arguments from userspace 781 struct nilfs_argv *argv, void *buf) nilfs_ioctl_mark_blocks_dirty() 783 size_t nmembs = argv->v_nmembs; nilfs_ioctl_mark_blocks_dirty() 822 struct nilfs_argv *argv, void **kbufs) nilfs_ioctl_prepare_clean_segments() 827 ret = nilfs_ioctl_delete_checkpoints(nilfs, &argv[1], kbufs[1]); nilfs_ioctl_prepare_clean_segments() 836 ret = nilfs_ioctl_free_vblocknrs(nilfs, &argv[2], kbufs[2]); nilfs_ioctl_prepare_clean_segments() 845 ret = nilfs_ioctl_mark_blocks_dirty(nilfs, &argv[3], kbufs[3]); nilfs_ioctl_prepare_clean_segments() 878 struct nilfs_argv argv[5]; nilfs_ioctl_clean_segments() local 900 if (copy_from_user(argv, argp, sizeof(argv))) nilfs_ioctl_clean_segments() 904 nsegs = argv[4].v_nmembs; nilfs_ioctl_clean_segments() 905 if (argv[4].v_size != argsz[4]) nilfs_ioctl_clean_segments() 911 * argv[4] points to segment numbers this ioctl cleans. We nilfs_ioctl_clean_segments() 915 kbufs[4] = memdup_user((void __user *)(unsigned long)argv[4].v_base, nilfs_ioctl_clean_segments() 925 if (argv[n].v_size != argsz[n]) nilfs_ioctl_clean_segments() 928 if (argv[n].v_nmembs > nsegs * nilfs->ns_blocks_per_segment) nilfs_ioctl_clean_segments() 931 if (argv[n].v_nmembs >= UINT_MAX / argv[n].v_size) nilfs_ioctl_clean_segments() 934 len = argv[n].v_size * argv[n].v_nmembs; nilfs_ioctl_clean_segments() 935 base = (void __user *)(unsigned long)argv[n].v_base; nilfs_ioctl_clean_segments() 964 ret = nilfs_ioctl_move_blocks(inode->i_sb, &argv[0], kbufs[0]); nilfs_ioctl_clean_segments() 971 ret = nilfs_clean_segments(inode->i_sb, argv, kbufs); nilfs_ioctl_clean_segments() 1188 struct nilfs_argv argv; nilfs_ioctl_get_info() local 1191 if (copy_from_user(&argv, argp, sizeof(argv))) nilfs_ioctl_get_info() 1194 if (argv.v_size < membsz) nilfs_ioctl_get_info() 1197 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); nilfs_ioctl_get_info() 1201 if (copy_to_user(argp, &argv, sizeof(argv))) nilfs_ioctl_get_info() 1235 struct nilfs_argv argv; nilfs_ioctl_set_suinfo() local 1249 if (copy_from_user(&argv, argp, sizeof(argv))) nilfs_ioctl_set_suinfo() 1253 if (argv.v_size < sizeof(struct nilfs_suinfo_update)) nilfs_ioctl_set_suinfo() 1256 if (argv.v_nmembs > nilfs->ns_nsegments) nilfs_ioctl_set_suinfo() 1259 if (argv.v_nmembs >= UINT_MAX / argv.v_size) nilfs_ioctl_set_suinfo() 1262 len = argv.v_size * argv.v_nmembs; nilfs_ioctl_set_suinfo() 1268 base = (void __user *)(unsigned long)argv.v_base; nilfs_ioctl_set_suinfo() 1281 ret = nilfs_sufile_set_suinfo(nilfs->ns_sufile, kbuf, argv.v_size, nilfs_ioctl_set_suinfo() 1282 argv.v_nmembs); nilfs_ioctl_set_suinfo() 60 nilfs_ioctl_wrap_copy(struct the_nilfs *nilfs, struct nilfs_argv *argv, int dir, ssize_t (*dofunc)(struct the_nilfs *, __u64 *, int, void *, size_t, size_t)) nilfs_ioctl_wrap_copy() argument 632 nilfs_ioctl_move_blocks(struct super_block *sb, struct nilfs_argv *argv, void *buf) nilfs_ioctl_move_blocks() argument 716 nilfs_ioctl_delete_checkpoints(struct the_nilfs *nilfs, struct nilfs_argv *argv, void *buf) nilfs_ioctl_delete_checkpoints() argument 751 nilfs_ioctl_free_vblocknrs(struct the_nilfs *nilfs, struct nilfs_argv *argv, void *buf) nilfs_ioctl_free_vblocknrs() argument 780 nilfs_ioctl_mark_blocks_dirty(struct the_nilfs *nilfs, struct nilfs_argv *argv, void *buf) nilfs_ioctl_mark_blocks_dirty() argument 821 nilfs_ioctl_prepare_clean_segments(struct the_nilfs *nilfs, struct nilfs_argv *argv, void **kbufs) nilfs_ioctl_prepare_clean_segments() argument
|
/linux-4.1.27/Documentation/networking/timestamping/ |
H A D | hwtstamp_config.c | 85 int main(int argc, char **argv) main() argument 92 if ((argc != 2 && argc != 4) || (strlen(argv[1]) >= IFNAMSIZ)) { main() 99 config.tx_type = lookup_value(tx_types, N_TX_TYPES, argv[2]); main() 100 config.rx_filter = lookup_value(rx_filters, N_RX_FILTERS, argv[3]); main() 113 strcpy(ifr.ifr_name, argv[1]); main()
|
H A D | timestamping.c | 314 int main(int argc, char **argv) main() argument 338 interface = argv[1]; main() 341 if (!strcasecmp(argv[i], "SO_TIMESTAMP")) main() 343 else if (!strcasecmp(argv[i], "SO_TIMESTAMPNS")) main() 345 else if (!strcasecmp(argv[i], "SIOCGSTAMP")) main() 347 else if (!strcasecmp(argv[i], "SIOCGSTAMPNS")) main() 349 else if (!strcasecmp(argv[i], "IP_MULTICAST_LOOP")) main() 351 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_TX_HARDWARE")) main() 353 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_TX_SOFTWARE")) main() 355 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_RX_HARDWARE")) main() 357 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_RX_SOFTWARE")) main() 359 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_SOFTWARE")) main() 361 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_RAW_HARDWARE")) main() 364 usage(argv[i]); main()
|
/linux-4.1.27/security/tomoyo/ |
H A D | load_policy.c | 86 char *argv[2]; tomoyo_load_policy() local 100 argv[0] = (char *) tomoyo_loader; tomoyo_load_policy() 101 argv[1] = NULL; tomoyo_load_policy() 105 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); tomoyo_load_policy()
|
H A D | condition.c | 14 * tomoyo_argv - Check argv[] in "struct linux_binbrm". 17 * @arg_ptr: Contents of argv[@index]. 18 * @argc: Length of @argv. 19 * @argv: Pointer to "struct tomoyo_argv". 20 * @checked: Set to true if @argv[@index] was found. 25 const int argc, const struct tomoyo_argv *argv, tomoyo_argv() 31 for (i = 0; i < argc; argv++, checked++, i++) { tomoyo_argv() 33 if (index != argv->index) tomoyo_argv() 37 result = tomoyo_path_matches_pattern(&arg, argv->value); tomoyo_argv() 38 if (argv->is_not) tomoyo_argv() 94 * @argv: Pointer to "struct tomoyo_argv". 101 const u16 argc, const struct tomoyo_argv *argv, tomoyo_scan_bprm() 154 arg_ptr, argc, argv, tomoyo_scan_bprm() 190 * bprm->argv[] are not matched. tomoyo_scan_bprm() 192 if (argv[i].is_not) tomoyo_scan_bprm() 279 * tomoyo_parse_argv - Parse an argv[] condition part. 283 * @argv: Pointer to "struct tomoyo_argv". 288 struct tomoyo_argv *argv) tomoyo_parse_argv() 290 if (tomoyo_parse_ulong(&argv->index, &left) != tomoyo_parse_argv() 293 argv->value = tomoyo_get_dqword(right); tomoyo_parse_argv() 294 return argv->value != NULL; tomoyo_parse_argv() 484 struct tomoyo_argv *argv = NULL; tomoyo_get_condition() local 545 if (!strncmp(left_word, "exec.argv[", 10)) { tomoyo_get_condition() 546 if (!argv) { tomoyo_get_condition() 553 argv->is_not = is_not; tomoyo_get_condition() 555 right_word, argv++)) tomoyo_get_condition() 658 argv = (struct tomoyo_argv *) (names_p + e.names_count); tomoyo_get_condition() 659 envp = (struct tomoyo_envp *) (argv + e.argc); tomoyo_get_condition() 753 const struct tomoyo_argv *argv; tomoyo_condition() local 774 argv = (const struct tomoyo_argv *) (names_p + cond->names_count); tomoyo_condition() 775 envp = (const struct tomoyo_envp *) (argv + argc); tomoyo_condition() 783 /* Check argv[] and envp[] later. */ tomoyo_condition() 1090 /* Check argv[] and envp[] now. */ tomoyo_condition() 1092 return tomoyo_scan_bprm(r->ee, argc, argv, envc, envp); tomoyo_condition() 24 tomoyo_argv(const unsigned int index, const char *arg_ptr, const int argc, const struct tomoyo_argv *argv, u8 *checked) tomoyo_argv() argument 100 tomoyo_scan_bprm(struct tomoyo_execve *ee, const u16 argc, const struct tomoyo_argv *argv, const u16 envc, const struct tomoyo_envp *envp) tomoyo_scan_bprm() argument 287 tomoyo_parse_argv(char *left, char *right, struct tomoyo_argv *argv) tomoyo_parse_argv() argument
|
/linux-4.1.27/arch/sparc/boot/ |
H A D | piggyback.c | 184 int main(int argc,char **argv) main() argument 195 if (strcmp(argv[1], "64") == 0) main() 197 if (stat (argv[4], &s) < 0) main() 198 die(argv[4]); main() 200 if (!get_start_end(argv[3], &start, &end)) { main() 202 argv[3]); main() 205 if ((image = open(argv[2], O_RDWR)) < 0) main() 206 die(argv[2]); main() 208 die(argv[2]); main() 221 offset = get_hdrs_offset(image, argv[2]); main() 241 die(argv[2]); main() 256 die(argv[2]); main() 262 if ((tail = open(argv[4], O_RDONLY)) < 0) main() 263 die(argv[4]); main() 266 die(argv[2]); main()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-stats.c | 767 unsigned argc, char **argv, message_stats_create() 784 if (!strcmp(argv[1], "-")) { message_stats_create() 789 } else if (sscanf(argv[1], "%llu+%llu%c", &start, &len, &dummy) != 2 || message_stats_create() 797 if (sscanf(argv[2], "/%u%c", &divisor, &dummy) == 1) { message_stats_create() 805 } else if (sscanf(argv[2], "%llu%c", &step, &dummy) != 1 || message_stats_create() 813 program_id = argv[3]; message_stats_create() 816 aux_data = argv[4]; message_stats_create() 839 unsigned argc, char **argv) message_stats_delete() 847 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) message_stats_delete() 854 unsigned argc, char **argv) message_stats_clear() 862 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) message_stats_clear() 869 unsigned argc, char **argv, message_stats_list() 879 program = kstrdup(argv[1], GFP_KERNEL); message_stats_list() 892 unsigned argc, char **argv, bool clear, message_stats_print() 902 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) message_stats_print() 906 if (strcmp(argv[2], "-") && message_stats_print() 907 sscanf(argv[2], "%lu%c", &idx_start, &dummy) != 1) message_stats_print() 909 if (strcmp(argv[3], "-") && message_stats_print() 910 sscanf(argv[3], "%lu%c", &idx_len, &dummy) != 1) message_stats_print() 919 unsigned argc, char **argv) message_stats_set_aux() 927 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) message_stats_set_aux() 930 return dm_stats_set_aux(dm_get_stats(md), id, argv[2]); message_stats_set_aux() 933 int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv, dm_stats_message() argument 944 if (!strcasecmp(argv[0], "@stats_create")) dm_stats_message() 945 r = message_stats_create(md, argc, argv, result, maxlen); dm_stats_message() 946 else if (!strcasecmp(argv[0], "@stats_delete")) dm_stats_message() 947 r = message_stats_delete(md, argc, argv); dm_stats_message() 948 else if (!strcasecmp(argv[0], "@stats_clear")) dm_stats_message() 949 r = message_stats_clear(md, argc, argv); dm_stats_message() 950 else if (!strcasecmp(argv[0], "@stats_list")) dm_stats_message() 951 r = message_stats_list(md, argc, argv, result, maxlen); dm_stats_message() 952 else if (!strcasecmp(argv[0], "@stats_print")) dm_stats_message() 953 r = message_stats_print(md, argc, argv, false, result, maxlen); dm_stats_message() 954 else if (!strcasecmp(argv[0], "@stats_print_clear")) dm_stats_message() 955 r = message_stats_print(md, argc, argv, true, result, maxlen); dm_stats_message() 956 else if (!strcasecmp(argv[0], "@stats_set_aux")) dm_stats_message() 957 r = message_stats_set_aux(md, argc, argv); dm_stats_message() 962 DMWARN("Invalid parameters for message %s", argv[0]); dm_stats_message() 766 message_stats_create(struct mapped_device *md, unsigned argc, char **argv, char *result, unsigned maxlen) message_stats_create() argument 838 message_stats_delete(struct mapped_device *md, unsigned argc, char **argv) message_stats_delete() argument 853 message_stats_clear(struct mapped_device *md, unsigned argc, char **argv) message_stats_clear() argument 868 message_stats_list(struct mapped_device *md, unsigned argc, char **argv, char *result, unsigned maxlen) message_stats_list() argument 891 message_stats_print(struct mapped_device *md, unsigned argc, char **argv, bool clear, char *result, unsigned maxlen) message_stats_print() argument 918 message_stats_set_aux(struct mapped_device *md, unsigned argc, char **argv) message_stats_set_aux() argument
|
H A D | dm-stats.h | 28 int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv,
|
H A D | dm-switch.c | 252 static int switch_ctr(struct dm_target *ti, unsigned argc, char **argv) switch_ctr() argument 266 as.argv = argv; switch_ctr() 374 unsigned argc, char **argv) process_set_region_mappings() 381 const char *string = argv[i]; process_set_region_mappings() 388 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); process_set_region_mappings() 393 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); process_set_region_mappings() 398 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); process_set_region_mappings() 403 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); process_set_region_mappings() 433 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); process_set_region_mappings() 440 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); process_set_region_mappings() 446 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); process_set_region_mappings() 469 static int switch_message(struct dm_target *ti, unsigned argc, char **argv) switch_message() argument 478 if (!strcasecmp(argv[0], "set_region_mappings")) switch_message() 479 r = process_set_region_mappings(sctx, argc, argv); switch_message() 373 process_set_region_mappings(struct switch_ctx *sctx, unsigned argc, char **argv) process_set_region_mappings() argument
|
H A D | dm-verity.c | 731 static int verity_ctr(struct dm_target *ti, unsigned argc, char **argv) verity_ctr() argument 767 if (sscanf(argv[0], "%u%c", &num, &dummy) != 1 || verity_ctr() 775 r = dm_get_device(ti, argv[1], FMODE_READ, &v->data_dev); verity_ctr() 781 r = dm_get_device(ti, argv[2], FMODE_READ, &v->hash_dev); verity_ctr() 787 if (sscanf(argv[3], "%u%c", &num, &dummy) != 1 || verity_ctr() 797 if (sscanf(argv[4], "%u%c", &num, &dummy) != 1 || verity_ctr() 807 if (sscanf(argv[5], "%llu%c", &num_ll, &dummy) != 1 || verity_ctr() 822 if (sscanf(argv[6], "%llu%c", &num_ll, &dummy) != 1 || verity_ctr() 831 v->alg_name = kstrdup(argv[7], GFP_KERNEL); verity_ctr() 860 if (strlen(argv[8]) != v->digest_size * 2 || verity_ctr() 861 hex2bin(v->root_digest, argv[8], v->digest_size)) { verity_ctr() 867 if (strcmp(argv[9], "-")) { verity_ctr() 868 v->salt_size = strlen(argv[9]) / 2; verity_ctr() 875 if (strlen(argv[9]) != v->salt_size * 2 || verity_ctr() 876 hex2bin(v->salt, argv[9], v->salt_size)) { verity_ctr() 883 argv += 10; verity_ctr() 889 as.argv = argv; verity_ctr()
|
H A D | dm-delay.c | 127 static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv) delay_ctr() argument 146 if (sscanf(argv[1], "%llu%c", &tmpll, &dummy) != 1) { delay_ctr() 152 if (sscanf(argv[2], "%u%c", &dc->read_delay, &dummy) != 1) { delay_ctr() 157 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), delay_ctr() 167 if (sscanf(argv[4], "%llu%c", &tmpll, &dummy) != 1) { delay_ctr() 173 if (sscanf(argv[5], "%u%c", &dc->write_delay, &dummy) != 1) { delay_ctr() 178 if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), delay_ctr()
|
H A D | dm-linear.c | 28 static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) linear_ctr() argument 45 if (sscanf(argv[1], "%llu%c", &tmp, &dummy) != 1) { linear_ctr() 51 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev)) { linear_ctr()
|
H A D | dm-raid.c | 221 static int dev_parms(struct raid_set *rs, char **argv) dev_parms() argument 228 for (i = 0; i < rs->md.raid_disks; i++, argv += 2) { dev_parms() 241 if (strcmp(argv[0], "-")) { dev_parms() 242 ret = dm_get_device(rs->ti, argv[0], dev_parms() 254 if (!strcmp(argv[1], "-")) { dev_parms() 268 ret = dm_get_device(rs->ti, argv[1], dev_parms() 495 static int parse_raid_params(struct raid_set *rs, char **argv, parse_raid_params() argument 510 if ((kstrtoul(argv[0], 10, &value) < 0)) { parse_raid_params() 526 argv++; parse_raid_params() 555 if (!strcasecmp(argv[i], "nosync")) { parse_raid_params() 560 if (!strcasecmp(argv[i], "sync")) { parse_raid_params() 572 key = argv[i++]; parse_raid_params() 580 if (strcmp("near", argv[i]) && parse_raid_params() 581 strcmp("far", argv[i]) && parse_raid_params() 582 strcmp("offset", argv[i])) { parse_raid_params() 586 raid10_format = argv[i]; parse_raid_params() 591 if (kstrtoul(argv[i], 10, &value) < 0) { parse_raid_params() 1208 static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv) raid_ctr() argument 1222 rt = get_raid_type(argv[0]); raid_ctr() 1228 argv++; raid_ctr() 1231 if (kstrtoul(argv[0], 10, &num_raid_params) < 0) { raid_ctr() 1236 argv++; raid_ctr() 1244 if ((kstrtoul(argv[num_raid_params], 10, &num_raid_devs) < 0) || raid_ctr() 1260 ret = parse_raid_params(rs, argv, (unsigned)num_raid_params); raid_ctr() 1264 argv += num_raid_params + 1; raid_ctr() 1266 ret = dev_parms(rs, argv); raid_ctr() 1530 static int raid_message(struct dm_target *ti, unsigned argc, char **argv) raid_message() argument 1535 if (!strcasecmp(argv[0], "reshape")) { raid_message() 1543 if (!strcasecmp(argv[0], "frozen")) raid_message() 1548 if (!strcasecmp(argv[0], "idle") || !strcasecmp(argv[0], "frozen")) { raid_message() 1556 else if (!strcasecmp(argv[0], "resync")) raid_message() 1558 else if (!strcasecmp(argv[0], "recover")) { raid_message() 1562 if (!strcasecmp(argv[0], "check")) raid_message() 1564 else if (!!strcasecmp(argv[0], "repair")) raid_message()
|
H A D | dm-path-selector.h | 40 int (*create) (struct path_selector *ps, unsigned argc, char **argv); 48 int argc, char **argv, char **error);
|
H A D | dm-stripe.c | 74 unsigned int stripe, char **argv) get_stripe() 79 if (sscanf(argv[1], "%llu%c", &start, &dummy) != 1) get_stripe() 82 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), get_stripe() 95 static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) stripe_ctr() argument 109 if (kstrtouint(argv[0], 10, &stripes) || !stripes) { stripe_ctr() 114 if (kstrtouint(argv[1], 10, &chunk_size) || !chunk_size) { stripe_ctr() 181 argv += 2; stripe_ctr() 183 r = get_stripe(ti, sc, i, argv); stripe_ctr() 73 get_stripe(struct dm_target *ti, struct stripe_c *sc, unsigned int stripe, char **argv) get_stripe() argument
|
H A D | dm-log.c | 150 unsigned int argc, char **argv) dm_dirty_log_create() 167 if (type->ctr(log, ti, argc, argv)) { dm_dirty_log_create() 358 * argv contains region_size followed optionally by [no]sync 362 unsigned int argc, char **argv, create_log_context() 380 if (!strcmp(argv[1], "sync")) create_log_context() 382 else if (!strcmp(argv[1], "nosync")) create_log_context() 386 "dirty region log: %s", argv[1]); create_log_context() 391 if (sscanf(argv[0], "%u%c", ®ion_size, &dummy) != 1 || create_log_context() 393 DMWARN("invalid region size %s", argv[0]); create_log_context() 515 unsigned int argc, char **argv) core_ctr() 517 return create_log_context(log, ti, argc, argv, NULL); core_ctr() 538 * argv contains log_device region_size followed optionally by [no]sync 541 unsigned int argc, char **argv) disk_ctr() 551 r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &dev); disk_ctr() 555 r = create_log_context(log, ti, argc - 1, argv + 1, dev); disk_ctr() 147 dm_dirty_log_create(const char *type_name, struct dm_target *ti, int (*flush_callback_fn)(struct dm_target *ti), unsigned int argc, char **argv) dm_dirty_log_create() argument 361 create_log_context(struct dm_dirty_log *log, struct dm_target *ti, unsigned int argc, char **argv, struct dm_dev *dev) create_log_context() argument 514 core_ctr(struct dm_dirty_log *log, struct dm_target *ti, unsigned int argc, char **argv) core_ctr() argument 540 disk_ctr(struct dm_dirty_log *log, struct dm_target *ti, unsigned int argc, char **argv) disk_ctr() argument
|
H A D | dm-raid1.c | 922 unsigned int mirror, char **argv) get_mirror() 927 if (sscanf(argv[1], "%llu%c", &offset, &dummy) != 1) { get_mirror() 932 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), get_mirror() 950 unsigned argc, char **argv, create_dirty_log() 962 if (sscanf(argv[1], "%u%c", ¶m_count, &dummy) != 1) { create_dirty_log() 974 dl = dm_dirty_log_create(argv[0], ti, mirror_flush, param_count, create_dirty_log() 975 argv + 2); create_dirty_log() 984 static int parse_features(struct mirror_set *ms, unsigned argc, char **argv, parse_features() argument 996 if (sscanf(argv[0], "%u%c", &num_features, &dummy) != 1) { parse_features() 1002 argv++; parse_features() 1010 if (!strcmp("handle_errors", argv[0])) parse_features() 1034 static int mirror_ctr(struct dm_target *ti, unsigned int argc, char **argv) mirror_ctr() argument 1042 dl = create_dirty_log(ti, argc, argv, &args_used); mirror_ctr() 1046 argv += args_used; mirror_ctr() 1049 if (!argc || sscanf(argv[0], "%u%c", &nr_mirrors, &dummy) != 1 || mirror_ctr() 1056 argv++, argc--; mirror_ctr() 1072 r = get_mirror(ms, ti, m, argv); mirror_ctr() 1077 argv += 2; mirror_ctr() 1103 r = parse_features(ms, argc, argv, &args_used); mirror_ctr() 1107 argv += args_used; mirror_ctr() 921 get_mirror(struct mirror_set *ms, struct dm_target *ti, unsigned int mirror, char **argv) get_mirror() argument 949 create_dirty_log(struct dm_target *ti, unsigned argc, char **argv, unsigned *args_used) create_dirty_log() argument
|
H A D | dm-exception-store.c | 191 int dm_exception_store_create(struct dm_target *ti, int argc, char **argv, dm_exception_store_create() argument 212 persistent = toupper(*argv[0]); dm_exception_store_create() 232 r = set_chunk_size(tmp_store, argv[1], &ti->error); dm_exception_store_create()
|
H A D | dm-queue-length.c | 53 static int ql_create(struct path_selector *ps, unsigned argc, char **argv) ql_create() argument 110 int argc, char **argv, char **error) ql_add_path() 127 if ((argc == 1) && (sscanf(argv[0], "%u%c", &repeat_count, &dummy) != 1)) { ql_add_path() 109 ql_add_path(struct path_selector *ps, struct dm_path *path, int argc, char **argv, char **error) ql_add_path() argument
|
H A D | dm-round-robin.c | 63 static int rr_create(struct path_selector *ps, unsigned argc, char **argv) rr_create() argument 112 int argc, char **argv, char **error) rr_add_path() 125 if ((argc == 1) && (sscanf(argv[0], "%u%c", &repeat_count, &dummy) != 1)) { rr_add_path() 111 rr_add_path(struct path_selector *ps, struct dm_path *path, int argc, char **argv, char **error) rr_add_path() argument
|
H A D | dm-mpath.c | 540 r = pst->create(&pg->ps, ps_argc, as->argv); parse_path_selector() 634 r = ps->type->add_path(ps, &p->path, as->argc, as->argv, &ti->error); parse_path() 700 path_args.argv = as->argv; parse_priority_group() 749 len += strlen(as->argv[i]) + 1; parse_hw_handler() 758 j = sprintf(p, "%s", as->argv[i]); parse_hw_handler() 825 char **argv) multipath_ctr() 840 as.argv = argv; multipath_ctr() 1488 static int multipath_message(struct dm_target *ti, unsigned argc, char **argv) multipath_message() argument 1503 if (!strcasecmp(argv[0], "queue_if_no_path")) { multipath_message() 1506 } else if (!strcasecmp(argv[0], "fail_if_no_path")) { multipath_message() 1517 if (!strcasecmp(argv[0], "disable_group")) { multipath_message() 1518 r = bypass_pg_num(m, argv[1], 1); multipath_message() 1520 } else if (!strcasecmp(argv[0], "enable_group")) { multipath_message() 1521 r = bypass_pg_num(m, argv[1], 0); multipath_message() 1523 } else if (!strcasecmp(argv[0], "switch_group")) { multipath_message() 1524 r = switch_pg_num(m, argv[1]); multipath_message() 1526 } else if (!strcasecmp(argv[0], "reinstate_path")) multipath_message() 1528 else if (!strcasecmp(argv[0], "fail_path")) multipath_message() 1531 DMWARN("Unrecognised multipath message received: %s", argv[0]); multipath_message() 1535 r = dm_get_device(ti, argv[1], dm_table_get_mode(ti->table), &dev); multipath_message() 1538 argv[1]); multipath_message() 824 multipath_ctr(struct dm_target *ti, unsigned int argc, char **argv) multipath_ctr() argument
|
H A D | dm-table.c | 508 char **argv; realloc_argv() local 519 argv = kmalloc(new_size * sizeof(*argv), gfp); realloc_argv() 520 if (argv) { realloc_argv() 521 memcpy(argv, old_argv, *array_size * sizeof(*argv)); realloc_argv() 526 return argv; realloc_argv() 534 char *start, *end = input, *out, **argv = NULL; dm_split_args() local 544 argv = realloc_argv(&array_size, argv); dm_split_args() 545 if (!argv) dm_split_args() 573 argv = realloc_argv(&array_size, argv); dm_split_args() 574 if (!argv) dm_split_args() 584 argv[*argc] = start; dm_split_args() 588 *argvp = argv; dm_split_args() 670 char **argv; dm_table_add_target() local 740 r = dm_split_args(&argc, &argv, params); dm_table_add_target() 746 r = tgt->type->ctr(tgt, argc, argv); dm_table_add_target() 747 kfree(argv); dm_table_add_target() 806 r = *as->argv; dm_shift_arg() 807 as->argv++; dm_shift_arg() 819 as->argv += num_args; dm_consume_args()
|
H A D | dm-log-userspace-base.c | 126 unsigned argc, char **argv, build_constructor_string() 138 str_size += strlen(argv[i]) + 1; /* +1 for space between args */ build_constructor_string() 150 str_size += sprintf(str + str_size, " %s", argv[i]); build_constructor_string() 172 * argv contains: 191 unsigned argc, char **argv) userspace_ctr() 218 if (strlen(argv[0]) > (DM_UUID_LEN - 1)) { userspace_ctr() 226 strncpy(lc->uuid, argv[0], DM_UUID_LEN); userspace_ctr() 228 argv++; userspace_ctr() 233 if (!strcasecmp(argv[0], "integrated_flush")) { userspace_ctr() 236 argv++; userspace_ctr() 239 str_size = build_constructor_string(ti, argc, argv, &ctr_str); userspace_ctr() 125 build_constructor_string(struct dm_target *ti, unsigned argc, char **argv, char **ctr_str) build_constructor_string() argument 190 userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, unsigned argc, char **argv) userspace_ctr() argument
|
H A D | dm-service-time.c | 49 static int st_create(struct path_selector *ps, unsigned argc, char **argv) st_create() argument 107 int argc, char **argv, char **error) st_add_path() 132 if (argc && (sscanf(argv[0], "%u%c", &repeat_count, &dummy) != 1)) { st_add_path() 138 (sscanf(argv[1], "%u%c", &relative_throughput, &dummy) != 1 || st_add_path() 106 st_add_path(struct path_selector *ps, struct dm_path *path, int argc, char **argv, char **error) st_add_path() argument
|
H A D | dm-zero.c | 18 static int zero_ctr(struct dm_target *ti, unsigned int argc, char **argv) zero_ctr() argument
|
/linux-4.1.27/arch/alpha/boot/tools/ |
H A D | mkbb.c | 85 int main(int argc, char ** argv) main() argument 95 fprintf(stderr, "Usage: %s device lxboot\n", argv[0]); main() 100 dev = open(argv[1], O_RDWR); main() 102 perror(argv[1]); main() 107 fd = open(argv[2], O_RDONLY); main() 109 perror(argv[2]); main()
|
H A D | objstrip.c | 52 main (int argc, char *argv[]) main() argument 65 prog_name = argv[0]; main() 67 for (i = 1; i < argc && argv[i][0] == '-'; ++i) { main() 68 for (j = 1; argv[i][j]; ++j) { main() 69 switch (argv[i][j]) { main() 88 inname = argv[i++]; main() 98 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); main()
|
/linux-4.1.27/arch/x86/tools/ |
H A D | relocs_common.c | 18 int main(int argc, char **argv) main() argument 34 char *arg = argv[i]; main()
|
H A D | test_get_len.c | 88 static void parse_args(int argc, char **argv) parse_args() argument 91 prog = argv[0]; parse_args() 92 while ((c = getopt(argc, argv, "ynv")) != -1) { parse_args() 111 int main(int argc, char **argv) main() argument 119 parse_args(argc, argv); main()
|
H A D | insn_sanity.c | 175 static void parse_args(int argc, char **argv) parse_args() argument 181 prog = argv[0]; parse_args() 182 while ((c = getopt(argc, argv, "ynvs:m:i:")) != -1) { parse_args() 236 int main(int argc, char **argv) main() argument 244 parse_args(argc, argv); main()
|
/linux-4.1.27/arch/mips/paravirt/ |
H A D | setup.c | 43 char **argv = (char **)fw_arg1; prom_init() local 52 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); prom_init()
|
/linux-4.1.27/Documentation/spi/ |
H A D | spidev_fdx.c | 105 int main(int argc, char **argv) main() argument 113 while ((c = getopt(argc, argv, "hm:r:v")) != EOF) { main() 133 argv[0]); main() 140 name = argv[optind]; main()
|
H A D | spidev_test.c | 162 static void parse_opts(int argc, char *argv[]) parse_opts() argument 185 c = getopt_long(argc, argv, "D:s:d:b:lHOLC3NR24p:v", lopts, NULL); parse_opts() 240 print_usage(argv[0]); parse_opts() 252 int main(int argc, char *argv[]) main() argument 260 parse_opts(argc, argv); main()
|
/linux-4.1.27/tools/perf/ui/ |
H A D | util.h | 7 int ui__popup_menu(int argc, char * const argv[]);
|
/linux-4.1.27/arch/mips/fw/arc/ |
H A D | cmdline.c | 6 * cmdline.c: Kernel command line creation using ARCS argc/argv. 40 actr = 1; /* Always ignore argv[0] */ move_firmware_args() 72 actr = 1; /* Always ignore argv[0] */ prom_init_cmdline()
|
/linux-4.1.27/arch/mips/pnx833x/common/ |
H A D | prom.c | 32 char **argv = (char **)fw_arg1; prom_init_cmdline() local 37 strcpy(c, argv[i]); prom_init_cmdline() 38 c += strlen(argv[i]); prom_init_cmdline()
|
/linux-4.1.27/arch/mips/vr41xx/common/ |
H A D | init.c | 63 char **argv; prom_init() local 66 argv = (char **)fw_arg1; prom_init() 69 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); prom_init()
|
/linux-4.1.27/arch/ia64/scripts/ |
H A D | unwcheck.py | 17 if len(sys.argv) != 2: 18 print "Usage: %s FILE" % sys.argv[0] 39 for line in os.popen("%s -u %s" % (readelf, sys.argv[1])):
|
/linux-4.1.27/arch/m68k/tools/amiga/ |
H A D | dmesg.c | 27 #define CHIPMEM_END 0x00200000 /* overridden by argv[1] */ 41 int main(int argc, char *argv[]) main() argument 48 end = strtoul(argv[1], NULL, 0); main()
|
/linux-4.1.27/Documentation/watchdog/src/ |
H A D | watchdog-test.c | 41 int main(int argc, char *argv[]) main() argument 54 if (!strncasecmp(argv[1], "-d", 2)) { main() 60 } else if (!strncasecmp(argv[1], "-e", 2)) { main()
|
/linux-4.1.27/tools/perf/tests/ |
H A D | builtin-test.c | 178 static bool perf_test__matches(int curr, int argc, const char *argv[]) perf_test__matches() argument 187 long nr = strtoul(argv[i], &end, 10); perf_test__matches() 195 if (strstr(tests[curr].desc, argv[i])) perf_test__matches() 232 static int __cmd_test(int argc, const char *argv[], struct intlist *skiplist) __cmd_test() argument 249 if (!perf_test__matches(curr, argc, argv)) __cmd_test() 280 static int perf_test__list(int argc, const char **argv) perf_test__list() argument 287 if (argc > 1 && !strstr(tests[curr].desc, argv[1])) perf_test__list() 296 int cmd_test(int argc, const char **argv, const char *prefix __maybe_unused) cmd_test() argument 316 argc = parse_options_subcommand(argc, argv, test_options, test_subcommands, test_usage, 0); cmd_test() 317 if (argc >= 1 && !strcmp(argv[0], "list")) cmd_test() 318 return perf_test__list(argc, argv); cmd_test() 330 return __cmd_test(argc, argv, skiplist); cmd_test()
|
H A D | task-exit.c | 44 const char *argv[] = { "true", NULL }; test__task_exit() local 69 err = perf_evlist__prepare_workload(evlist, &target, argv, false, test__task_exit()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | auo_k190x.h | 113 int argc, u16 *argv); 115 int argc, u16 *argv); 117 u16 cmd, int argc, u16 *argv, 120 int argc, u16 *argv, int size, 123 int argc, u16 *argv);
|
/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 78 void cmdline(int argc, char **argv) cmdline() argument 82 progname = argv[0]; cmdline() 84 while ((opt = getopt(argc, argv, "+rvc:")) != -1) { cmdline() 113 if (!strcmp("performance", argv[optind])) { cmdline() 115 } else if (!strcmp("normal", argv[optind])) { cmdline() 117 } else if (!strcmp("powersave", argv[optind])) { cmdline() 122 new_bias = strtoull(argv[optind], &endptr, 0); cmdline() 123 if (endptr == argv[optind] || cmdline() 126 argv[optind]); cmdline() 299 int main(int argc, char **argv) main() argument 301 cmdline(argc, argv); main()
|
/linux-4.1.27/tools/power/acpi/tools/acpidump/ |
H A D | apmain.c | 73 static int ap_do_options(int argc, char **argv); 155 * PARAMETERS: argc/argv - Standard argc/argv 164 static int ap_do_options(int argc, char **argv) ap_do_options() argument 172 acpi_getopt(argc, argv, AP_SUPPORTED_OPTIONS)) != ACPI_OPT_END) ap_do_options() 286 * PARAMETERS: argc/argv - Standard argc/argv 295 int ACPI_SYSTEM_XFACE main(int argc, char *argv[]) main() argument 297 int ACPI_SYSTEM_XFACE acpi_main(int argc, char *argv[]) main() 311 status = ap_do_options(argc, argv); main()
|
/linux-4.1.27/arch/mips/netlogic/xlr/ |
H A D | setup.c | 102 static void __init build_arcs_cmdline(int *argv) build_arcs_cmdline() argument 109 for (i = 0; argv[i] != 0; i++) { build_arcs_cmdline() 110 arg = (char *)(long)argv[i]; build_arcs_cmdline() 177 int *argv, *envp; /* passed as 32 bit ptrs */ prom_init() local 185 argv = (int *)(long)(int)fw_arg1; prom_init() 198 build_arcs_cmdline(argv); prom_init()
|
/linux-4.1.27/scripts/selinux/mdp/ |
H A D | mdp.c | 47 int main(int argc, char *argv[]) main() argument 56 usage(argv[0]); main() 57 arg = argv+1; main() 58 if (argc==4 && strcmp(argv[1], "-m") == 0) { main() 68 usage(argv[0]); main() 140 usage(argv[0]); main()
|
/linux-4.1.27/arch/mips/cobalt/ |
H A D | setup.c | 103 char **argv; prom_init() local 107 argv = (char **)fw_arg1; prom_init() 110 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); prom_init()
|
/linux-4.1.27/kernel/trace/ |
H A D | trace_kdb.c | 102 static int kdb_ftdump(int argc, const char **argv) kdb_ftdump() argument 112 skip_lines = simple_strtol(argv[1], &cp, 0); kdb_ftdump() 118 cpu_file = simple_strtol(argv[2], &cp, 0); kdb_ftdump()
|
/linux-4.1.27/arch/cris/boot/tools/ |
H A D | build.c | 106 int main(int argc, char ** argv) main() argument 121 if (!strcmp(argv[4], "CURRENT")) { main() 128 } else if (strcmp(argv[4], "FLOPPY")) { main() 129 if (stat(argv[4], &sb)) { main() 130 perror(argv[4]); main() 145 if ((id=open(argv[1],O_RDONLY,0))<0) main() 174 if ((id=open(argv[2],O_RDONLY,0))<0) main() 231 if ((id=open(argv[3],O_RDONLY,0))<0) main() 266 perror(argv[1]); main()
|
/linux-4.1.27/Documentation/laptops/ |
H A D | dslm.c | 132 int main(int argc, char **argv) main() argument 140 disk = argv[1]; main() 142 settle_time = atoi(argv[2]); main() 143 disk = argv[3]; main()
|
H A D | freefall.c | 107 int main(int argc, char **argv) main() argument 116 ret = set_unload_heads_path(argv[1]); main() 122 argv[0]); main()
|
/linux-4.1.27/tools/testing/selftests/vm/ |
H A D | transhuge-stress.c | 58 int main(int argc, char **argv) main() argument 75 else if (!strcmp(argv[1], "-h")) main() 76 errx(1, "usage: %s [size in MiB]", argv[0]); main() 78 len = atoll(argv[1]) << 20; main()
|
/linux-4.1.27/arch/mips/jz4740/ |
H A D | prom.c | 26 static __init void jz4740_init_cmdline(int argc, char *argv[]) jz4740_init_cmdline() argument 34 src = argv[i]; jz4740_init_cmdline()
|
/linux-4.1.27/arch/mips/lasat/ |
H A D | prom.c | 85 char **argv = (char **) fw_arg1; prom_init() local 103 strncpy(arcs_cmdline, argv[0], COMMAND_LINE_SIZE-1); prom_init()
|
/linux-4.1.27/tools/power/cpupower/debug/i386/ |
H A D | powernow-k8-decode.c | 69 int main (int argc, char *argv[]) main() argument 78 cpu = strtoul(argv[1], NULL, 0); main()
|
H A D | centrino-decode.c | 95 int main (int argc, char **argv) main() argument 102 cpu = strtoul(argv[1], NULL, 0); main()
|
H A D | dump_psb.c | 149 main(int argc, char *argv[]) main() argument 158 ret = getopt_long(argc, argv, "hr:n:", info_opts, NULL); main()
|
/linux-4.1.27/kernel/ |
H A D | kmod.c | 67 kfree(info->argv[3]); /* check call_modprobe() */ free_modprobe_argv() 68 kfree(info->argv); free_modprobe_argv() 81 char **argv = kmalloc(sizeof(char *[5]), GFP_KERNEL); call_modprobe() local 82 if (!argv) call_modprobe() 89 argv[0] = modprobe_path; call_modprobe() 90 argv[1] = "-q"; call_modprobe() 91 argv[2] = "--"; call_modprobe() 92 argv[3] = module_name; /* check free_modprobe_argv() */ call_modprobe() 93 argv[4] = NULL; call_modprobe() 95 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, call_modprobe() 105 kfree(argv); call_modprobe() 257 (const char __user *const __user *)sub_info->argv, ____call_usermodehelper() 481 * @argv: arg vector for process 497 * be freed. This can be used for freeing the argv and envp. The 501 struct subprocess_info *call_usermodehelper_setup(char *path, char **argv, call_usermodehelper_setup() argument 514 sub_info->argv = argv; call_usermodehelper_setup() 588 * @argv: arg vector for process 598 int call_usermodehelper(char *path, char **argv, char **envp, int wait) call_usermodehelper() argument 603 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, call_usermodehelper()
|
/linux-4.1.27/tools/hv/ |
H A D | hv_fcopy_daemon.c | 124 void print_usage(char *argv[]) print_usage() argument 129 " -h, --help print this help\n", argv[0]); print_usage() 132 int main(int argc, char *argv[]) main() argument 147 while ((opt = getopt_long(argc, argv, "hn", long_options, main() 155 print_usage(argv); main()
|
H A D | hv_vss_daemon.c | 173 void print_usage(char *argv[]) print_usage() argument 178 " -h, --help print this help\n", argv[0]); print_usage() 181 int main(int argc, char *argv[]) main() argument 201 while ((opt = getopt_long(argc, argv, "hn", long_options, main() 209 print_usage(argv); main()
|
/linux-4.1.27/tools/virtio/virtio-trace/ |
H A D | trace-agent.c | 187 static void *parse_args(int argc, char *argv[], struct agent_info *s) parse_args() argument 192 while ((cmd = getopt(argc, argv, "hos:")) != -1) { parse_args() 207 usage(argv[0]); parse_args() 258 int main(int argc, char *argv[]) main() argument 263 parse_args(argc, argv, s); main()
|
/linux-4.1.27/arch/x86/boot/tools/ |
H A D | build.c | 331 int main(int argc, char ** argv) main() argument 346 parse_zoffset(argv[3]); main() 348 dest = fopen(argv[4], "w"); main() 350 die("Unable to write `%s': %m", argv[4]); main() 353 file = fopen(argv[1], "r"); main() 355 die("Unable to open `%s': %m", argv[1]); main() 382 fd = open(argv[2], O_RDONLY); main() 384 die("Unable to open `%s': %m", argv[2]); main() 386 die("Unable to stat `%s': %m", argv[2]); main() 391 die("Unable to mmap '%s': %m", argv[2]); main()
|
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpupower-monitor.c | 272 int fork_it(char **argv) fork_it() argument 288 execvp(argv[0], argv); fork_it() 310 argv[0], timediff / (1000.0 * 1000), fork_it() 343 static void cmdline(int argc, char *argv[]) cmdline() argument 346 progname = basename(argv[0]); cmdline() 348 while ((opt = getopt(argc, argv, "+lci:m:")) != -1) { cmdline() 378 int cmd_monitor(int argc, char **argv) cmd_monitor() argument 384 cmdline(argc, argv); cmd_monitor() 432 fork_it(argv + optind); cmd_monitor()
|
/linux-4.1.27/net/sunrpc/ |
H A D | svcauth_unix.c | 727 struct kvec *argv = &rqstp->rq_arg.head[0]; svcauth_null_accept() local 735 if (argv->iov_len < 3*4) svcauth_null_accept() 738 if (svc_getu32(argv) != 0) { svcauth_null_accept() 743 if (svc_getu32(argv) != htonl(RPC_AUTH_NULL) || svc_getu32(argv) != 0) { svcauth_null_accept() 791 struct kvec *argv = &rqstp->rq_arg.head[0]; svcauth_unix_accept() local 795 int len = argv->iov_len; svcauth_unix_accept() 804 svc_getu32(argv); /* length */ svcauth_unix_accept() 805 svc_getu32(argv); /* time stamp */ svcauth_unix_accept() 806 slen = XDR_QUADLEN(svc_getnl(argv)); /* machname length */ svcauth_unix_accept() 809 argv->iov_base = (void*)((__be32*)argv->iov_base + slen); /* skip machname */ svcauth_unix_accept() 810 argv->iov_len -= slen*4; svcauth_unix_accept() 818 cred->cr_uid = make_kuid(&init_user_ns, svc_getnl(argv)); /* uid */ svcauth_unix_accept() 819 cred->cr_gid = make_kgid(&init_user_ns, svc_getnl(argv)); /* gid */ svcauth_unix_accept() 820 slen = svc_getnl(argv); /* gids length */ svcauth_unix_accept() 827 kgid_t kgid = make_kgid(&init_user_ns, svc_getnl(argv)); svcauth_unix_accept() 830 if (svc_getu32(argv) != htonl(RPC_AUTH_NULL) || svc_getu32(argv) != 0) { svcauth_unix_accept()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | stackglue.c | 429 char *argv[5], *envp[3]; ocfs2_leave_group() local 431 argv[0] = ocfs2_hb_ctl_path; ocfs2_leave_group() 432 argv[1] = "-K"; ocfs2_leave_group() 433 argv[2] = "-u"; ocfs2_leave_group() 434 argv[3] = (char *)group; ocfs2_leave_group() 435 argv[4] = NULL; ocfs2_leave_group() 442 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); ocfs2_leave_group() 447 ret, argv[0], argv[1], argv[2], argv[3]); ocfs2_leave_group()
|
/linux-4.1.27/fs/nfs/ |
H A D | cache_lib.c | 41 char *argv[] = { nfs_cache_upcall() local 51 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); nfs_cache_upcall()
|
/linux-4.1.27/tools/testing/selftests/timers/ |
H A D | threadtest.c | 132 int main(int argc, char **argv) main() argument 147 while ((opt = getopt(argc, argv, "t:n:i")) != -1) { main() 160 printf("Usage: %s [-t <secs>] [-n <numthreads>] [-i]\n", argv[0]); main()
|
H A D | inconsistency-check.c | 164 int main(int argc, char *argv[]) main() argument 173 while ((opt = getopt(argc, argv, "t:c:")) != -1) { main() 183 printf("Usage: %s [-t <secs>] [-c <clockid>]\n", argv[0]); main()
|
H A D | set-2038.c | 85 int main(int argc, char *argv[]) main() argument 92 while ((opt = getopt(argc, argv, "d")) != -1) { main()
|
/linux-4.1.27/tools/vm/ |
H A D | page_owner_sort.c | 84 int main(int argc, char **argv) main() argument 98 fin = fopen(argv[1], "r"); main() 99 fout = fopen(argv[2], "w"); main()
|
/linux-4.1.27/include/linux/ |
H A D | kmod.h | 60 char **argv; request_module_nowait() member in struct:subprocess_info 70 call_usermodehelper(char *path, char **argv, char **envp, int wait); 73 call_usermodehelper_setup(char *path, char **argv, char **envp, gfp_t gfp_mask,
|
/linux-4.1.27/arch/sparc/prom/ |
H A D | bootstr_32.c | 31 arg = (*(romvec->pv_v0bootargs))->argv[iter]; prom_getbootargs()
|
/linux-4.1.27/arch/metag/include/asm/ |
H A D | processor.h | 104 argv[0] program name (pointer) 105 argv[1...N] program args (pointers) 106 argv[argc-1] end of args (integer) 120 regs->ctx.DX[3].U0 = (int)((int *)argc + 1); /* argv */ \
|
/linux-4.1.27/Documentation/auxdisplay/ |
H A D | cfag12864b-example.c | 256 int main(int argc, char *argv[]) main() argument 263 "Usually: /dev/fb0, /dev/fb1...\n", argv[0]); main() 267 if (cfag12864b_init(argv[1])) { main() 268 printf("Can't init %s fbdev\n", argv[1]); main()
|
/linux-4.1.27/Documentation/connector/ |
H A D | ucon.c | 111 int main(int argc, char *argv[]) main() argument 124 while ((s = getopt(argc, argv, "hs")) != -1) { main() 142 out = fopen(argv[optind], "a+"); main() 145 argv[1], strerror(errno)); main()
|
/linux-4.1.27/Documentation/vDSO/ |
H A D | vdso_test.c | 22 int main(int argc, char **argv) main() argument
|
/linux-4.1.27/scripts/mod/ |
H A D | mk_elfconfig.c | 7 main(int argc, char **argv) main() argument
|
/linux-4.1.27/arch/mips/lantiq/ |
H A D | prom.c | 51 char **argv = (char **) KSEG1ADDR(fw_arg1); prom_init_cmdline() local 57 char *p = (char *) KSEG1ADDR(argv[i]); prom_init_cmdline()
|
/linux-4.1.27/fs/ |
H A D | binfmt_em86.c | 61 * Splice in (1) the interpreter's name for argv[0] load_em86() 63 * (3) filename of emulated file (replace argv[0]) load_em86()
|
H A D | exec.c | 214 * Limit to 1/4-th the stack size for the argv+env strings. get_arg_page() 399 static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr) get_user_arg_ptr() argument 404 if (unlikely(argv.is_compat)) { get_user_arg_ptr() 407 if (get_user(compat, argv.ptr.compat + nr)) get_user_arg_ptr() 414 if (get_user(native, argv.ptr.native + nr)) get_user_arg_ptr() 423 static int count(struct user_arg_ptr argv, int max) count() argument 427 if (argv.ptr.native != NULL) { count() 429 const char __user *p = get_user_arg_ptr(argv, i); count() 454 static int copy_strings(int argc, struct user_arg_ptr argv, copy_strings() argument 468 str = get_user_arg_ptr(argv, argc); copy_strings() 543 * Like copy_strings, but get argv and its values from kernel memory. 550 struct user_arg_ptr argv = { copy_strings_kernel() local 555 r = copy_strings(argc, argv, bprm); copy_strings_kernel() 1479 struct user_arg_ptr argv, do_execveat_common() 1559 bprm->argc = count(argv, MAX_ARG_STRINGS); do_execveat_common() 1580 retval = copy_strings(bprm->argc, argv, bprm); do_execveat_common() 1626 struct user_arg_ptr argv = { .ptr.native = __argv }; do_execve() local 1628 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); do_execve() 1636 struct user_arg_ptr argv = { .ptr.native = __argv }; do_execveat() local 1639 return do_execveat_common(fd, filename, argv, envp, flags); do_execveat() 1647 struct user_arg_ptr argv = { compat_do_execve() local 1655 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); compat_do_execve() 1663 struct user_arg_ptr argv = { compat_do_execveat() local 1671 return do_execveat_common(fd, filename, argv, envp, flags); compat_do_execveat() 1706 const char __user *const __user *, argv, SYSCALL_DEFINE3() 1709 return do_execve(getname(filename), argv, envp); SYSCALL_DEFINE3() 1714 const char __user *const __user *, argv, SYSCALL_DEFINE5() 1722 argv, envp, flags); SYSCALL_DEFINE5() 1727 const compat_uptr_t __user *, argv, COMPAT_SYSCALL_DEFINE3() 1730 return compat_do_execve(getname(filename), argv, envp); COMPAT_SYSCALL_DEFINE3() 1735 const compat_uptr_t __user *, argv, COMPAT_SYSCALL_DEFINE5() 1743 argv, envp, flags); COMPAT_SYSCALL_DEFINE5() 1478 do_execveat_common(int fd, struct filename *filename, struct user_arg_ptr argv, struct user_arg_ptr envp, int flags) do_execveat_common() argument
|
H A D | binfmt_script.c | 72 * Splice in (1) the interpreter's name for argv[0] load_script() 74 * (3) filename of shell script (replace argv[0]) load_script()
|
/linux-4.1.27/scripts/dtc/ |
H A D | fdtdump.c | 146 int main(int argc, char *argv[]) main() argument 155 buf = utilfdt_read(argv[1]); main()
|
H A D | fdtput.c | 300 int main(int argc, char *argv[]) main() argument 309 int c = getopt(argc, argv, "chpt:v"); main() 345 filename = argv[optind++]; main() 349 argv += optind; main() 359 if (do_fdtput(&disp, filename, argv, argc)) main()
|
/linux-4.1.27/tools/testing/selftests/memfd/ |
H A D | fuse_mnt.c | 107 int main(int argc, char *argv[]) main() argument 109 return fuse_main(argc, argv, &memfd_ops, NULL); main()
|
/linux-4.1.27/arch/x86/vdso/ |
H A D | vdso2c.c | 205 int main(int argc, char **argv) main() argument 222 name = strdup(argv[3]); main() 238 map_input(argv[1], &raw_addr, &raw_len, PROT_READ); main() 239 map_input(argv[2], &stripped_addr, &stripped_len, PROT_READ); main() 241 outfilename = argv[3]; main() 244 err(1, "%s", argv[2]); main()
|
/linux-4.1.27/firmware/ |
H A D | ihex2fw.c | 71 int main(int argc, char **argv) main() argument 78 while ((opt = getopt(argc, argv, "wsj")) != -1) { main() 97 if (!strcmp(argv[optind], "-")) main() 100 infd = open(argv[optind], O_RDONLY); main() 116 if (!strcmp(argv[optind+1], "-")) main() 119 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644); main()
|
/linux-4.1.27/security/keys/ |
H A D | request_key.c | 75 static int call_usermodehelper_keys(char *path, char **argv, char **envp, call_usermodehelper_keys() argument 80 info = call_usermodehelper_setup(path, argv, envp, GFP_KERNEL, call_usermodehelper_keys() 102 char *argv[9], *envp[3], uid_str[12], gid_str[12]; call_sbin_request_key() local 164 argv[i++] = "/sbin/request-key"; call_sbin_request_key() 165 argv[i++] = (char *) op; call_sbin_request_key() 166 argv[i++] = key_str; call_sbin_request_key() 167 argv[i++] = uid_str; call_sbin_request_key() 168 argv[i++] = gid_str; call_sbin_request_key() 169 argv[i++] = keyring_str[0]; call_sbin_request_key() 170 argv[i++] = keyring_str[1]; call_sbin_request_key() 171 argv[i++] = keyring_str[2]; call_sbin_request_key() 172 argv[i] = NULL; call_sbin_request_key() 175 ret = call_usermodehelper_keys(argv[0], argv, envp, keyring, call_sbin_request_key()
|
/linux-4.1.27/arch/mips/pmcs-msp71xx/ |
H A D | msp_prom.c | 312 actr = 1; /* Always ignore argv[0] */ prom_init_cmdline() 361 char **argv; prom_free_prom_memory() local 378 argv = kmalloc(len, GFP_KERNEL); prom_free_prom_memory() 379 ptr = (char *) &argv[prom_argc + 1]; /* strings follow array */ prom_free_prom_memory() 382 argv[argc] = ptr; prom_free_prom_memory() 386 argv[prom_argc] = NULL; /* end array with null pointer */ prom_free_prom_memory() 387 prom_argv = argv; prom_free_prom_memory()
|
/linux-4.1.27/net/sunrpc/auth_gss/ |
H A D | svcauth_gss.c | 620 svc_safe_getnetobj(struct kvec *argv, struct xdr_netobj *o) svc_safe_getnetobj() argument 624 if (argv->iov_len < 4) svc_safe_getnetobj() 626 o->len = svc_getnl(argv); svc_safe_getnetobj() 628 if (argv->iov_len < l) svc_safe_getnetobj() 630 o->data = argv->iov_base; svc_safe_getnetobj() 631 argv->iov_base += l; svc_safe_getnetobj() 632 argv->iov_len -= l; svc_safe_getnetobj() 666 struct kvec *argv = &rqstp->rq_arg.head[0]; gss_verify_header() local 671 iov.iov_len = (u8 *)argv->iov_base - (u8 *)rpcstart; gss_verify_header() 675 if (argv->iov_len < 4) gss_verify_header() 677 flavor = svc_getnl(argv); gss_verify_header() 680 if (svc_safe_getnetobj(argv, &checksum)) gss_verify_header() 992 struct kvec *argv, __be32 *authp, gss_read_common_verf() 997 if (argv->iov_len < 2 * 4) gss_read_common_verf() 999 if (svc_getnl(argv) != RPC_AUTH_NULL) gss_read_common_verf() 1001 if (svc_getnl(argv) != 0) gss_read_common_verf() 1016 struct kvec *argv, __be32 *authp, gss_read_verf() 1023 res = gss_read_common_verf(gc, argv, authp, in_handle); gss_read_verf() 1027 if (svc_safe_getnetobj(argv, &tmpobj)) { gss_read_verf() 1054 struct kvec *argv = &rqstp->rq_arg.head[0]; gss_read_proxy_verf() local 1058 res = gss_read_common_verf(gc, argv, authp, in_handle); gss_read_proxy_verf() 1062 inlen = svc_getnl(argv); gss_read_proxy_verf() 1063 if (inlen > (argv->iov_len + rqstp->rq_arg.page_len)) gss_read_proxy_verf() 1067 in_token->page_base = (ulong)argv->iov_base & ~PAGE_MASK; gss_read_proxy_verf() 1103 struct kvec *argv = &rqstp->rq_arg.head[0]; svcauth_gss_legacy_init() local 1110 ret = gss_read_verf(gc, argv, authp, svcauth_gss_legacy_init() 1399 struct kvec *argv = &rqstp->rq_arg.head[0]; svcauth_gss_accept() local 1410 dprintk("RPC: svcauth_gss: argv->iov_len = %zd\n", svcauth_gss_accept() 1411 argv->iov_len); svcauth_gss_accept() 1426 rpcstart = argv->iov_base; svcauth_gss_accept() 1434 if (argv->iov_len < 5 * 4) svcauth_gss_accept() 1436 crlen = svc_getnl(argv); svcauth_gss_accept() 1437 if (svc_getnl(argv) != RPC_GSS_VERSION) svcauth_gss_accept() 1439 gc->gc_proc = svc_getnl(argv); svcauth_gss_accept() 1440 gc->gc_seq = svc_getnl(argv); svcauth_gss_accept() 1441 gc->gc_svc = svc_getnl(argv); svcauth_gss_accept() 1442 if (svc_safe_getnetobj(argv, &gc->gc_ctx)) svcauth_gss_accept() 991 gss_read_common_verf(struct rpc_gss_wire_cred *gc, struct kvec *argv, __be32 *authp, struct xdr_netobj *in_handle) gss_read_common_verf() argument 1015 gss_read_verf(struct rpc_gss_wire_cred *gc, struct kvec *argv, __be32 *authp, struct xdr_netobj *in_handle, struct xdr_netobj *in_token) gss_read_verf() argument
|
/linux-4.1.27/arch/um/kernel/ |
H A D | um_arch.c | 253 int __init linux_main(int argc, char **argv) linux_main() argument 262 if ((i == 1) && (argv[i][0] == ' ')) linux_main() 265 uml_checksetup(argv[i], &add); linux_main() 267 add_arg(argv[i]); linux_main() 328 stack = (unsigned long) argv; linux_main()
|
/linux-4.1.27/arch/arm/vdso/ |
H A D | vdsomunge.c | 129 int main(int argc, char **argv) main() argument 143 argv0 = argv[0]; main() 146 fail("Usage: %s [infile] [outfile]\n", argv[0]); main() 148 infile = argv[1]; main() 149 outfile = argv[2]; main()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | processor.h | 227 * and argv in r24 (rather than r26 and r25). This is because that's 251 |---------------------------------| <- argv 280 * can just decrement argc and move argv, because the stack pointer 302 elf_caddr_t *argv = (elf_caddr_t *)bprm->exec + 1; \ 322 get_user(regs->gr[25], (argv - 1)); \ 323 regs->gr[24] = (long) argv; \
|
/linux-4.1.27/arch/mips/fw/sni/ |
H A D | sniprom.c | 141 u32 *argv = (u32 *)CKSEG0ADDR(fw_arg1); prom_init() local 148 strcat(arcs_cmdline, (char *)CKSEG0ADDR(argv[i])); prom_init()
|
/linux-4.1.27/init/ |
H A D | do_mounts_initrd.c | 54 static char *argv[] = { "linuxrc", NULL, }; handle_initrd() local 74 info = call_usermodehelper_setup("/linuxrc", argv, envp_init, handle_initrd()
|
/linux-4.1.27/arch/mips/rb532/ |
H A D | prom.c | 83 * at argv[1] and not argv[0], prom_setup_cmdline()
|
/linux-4.1.27/samples/hidraw/ |
H A D | hid-example.c | 42 int main(int argc, char **argv) main() argument 52 device = argv[1]; main()
|
/linux-4.1.27/tools/iio/ |
H A D | lsiio.c | 130 int main(int argc, char **argv) main() argument 134 while ((c = getopt(argc, argv, "d:D:v")) != EOF) { main()
|
/linux-4.1.27/tools/testing/selftests/exec/ |
H A D | execveat.c | 25 static char *argv[] = { "execveat", "99", NULL }; variable 27 static int execveat_(int fd, const char *path, char **argv, char **envp, execveat_() argument 31 return syscall(__NR_execveat, fd, path, argv, envp, flags); execveat_() 48 rc = execveat_(fd, path, argv, envp, flags); _check_execveat_fail() 85 rc = execveat_(fd, path, argv, envp, flags); check_execveat_invoked_rc() 377 int main(int argc, char **argv) main() argument 390 printf(" [%d]='%s'", ii, argv[ii]); main() 401 rc = atoi(argv[argc - 1]); main()
|
/linux-4.1.27/fs/nfs/objlayout/ |
H A D | objlayout.c | 602 char *argv[8]; __objlayout_upcall() local 614 argv[0] = (char *)osd_login_prog; __objlayout_upcall() 615 argv[1] = "-u"; __objlayout_upcall() 616 argv[2] = login->uri; __objlayout_upcall() 617 argv[3] = "-o"; __objlayout_upcall() 618 argv[4] = login->osdname; __objlayout_upcall() 619 argv[5] = "-s"; __objlayout_upcall() 620 argv[6] = login->systemid_hex; __objlayout_upcall() 621 argv[7] = NULL; __objlayout_upcall() 623 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); __objlayout_upcall()
|
/linux-4.1.27/arch/um/include/shared/ |
H A D | as-layout.h | 58 extern int linux_main(int argc, char **argv);
|
/linux-4.1.27/arch/unicore32/include/asm/ |
H A D | processor.h | 61 regs->UCreg_01 = stack[1]; /* r1 (argv) */ \
|
/linux-4.1.27/Documentation/prctl/ |
H A D | disable-tsc-ctxt-sw-stress-test.c | 77 int main(int argc, char **argv) main() argument
|
H A D | disable-tsc-on-off-stress-test.c | 81 int main(int argc, char **argv) main() argument
|
H A D | disable-tsc-test.c | 60 int main(int argc, char **argv) main() argument
|