Home
last modified time | relevance | path

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

12

/Documentation/timers/
Dhpet_example.c29 void (*func)(int argc, const char ** argv);
50 main(int argc, const char ** argv) in main() argument
55 argv++; in main()
64 if (!strcmp(argv[0], hpet_command[i].command)) { in main()
66 argv++; in main()
69 hpet_command[i].func(argc, argv); in main()
73 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); in main()
79 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument
88 fd = open(argv[0], O_RDONLY); in hpet_open_close()
98 hpet_info(int argc, const char **argv) in hpet_info() argument
[all …]
/Documentation/watchdog/src/
Dwatchdog-test.c41 int main(int argc, char *argv[]) in main() argument
55 if (!strncasecmp(argv[1], "-d", 2)) { in main()
61 } else if (!strncasecmp(argv[1], "-e", 2)) { in main()
67 } else if (!strncasecmp(argv[1], "-t", 2) && argv[2]) { in main()
68 flags = atoi(argv[2]); in main()
73 } else if (!strncasecmp(argv[1], "-p", 2) && argv[2]) { in main()
74 ping_rate = strtoul(argv[2], NULL, 0); in main()
/Documentation/sound/oss/
DMultiSound481 int main(int argc, char *argv[])
491 X if ((fd = open(argv[1], O_RDWR)) < 0) {
492 X perror(argv[1]);
853 static int cfg_dsp(int argc, char *argv[])
858 X sscanf(argv[0], "0x%x", &io) != 1 ||
859 X sscanf(argv[1], "%d", &irq) != 1 ||
860 X sscanf(argv[2], "0x%x", &mem) != 1)
901 static int cfg_mpu(int argc, char *argv[])
906 X sscanf(argv[0], "0x%x", &io) != 1 ||
907 X sscanf(argv[1], "%d", &irq) != 1)
[all …]
DOpti187 main(int argc, char **argv) {
198 from = atoi(argv[i-1]);
199 to = atoi(argv[i]);
203 argv[0], mixer_names[to]);
206 argv[0], mixer_names[from], mixer_names[to]);
/Documentation/pcmcia/
Dcrc32hash.c23 int main(int argc, char **argv) { in main() argument
29 result = crc32((unsigned char const *)argv[1], strlen(argv[1])); in main()
/Documentation/spi/
Dspidev_fdx.c105 int main(int argc, char **argv) in main() argument
113 while ((c = getopt(argc, argv, "hm:r:v")) != EOF) { in main()
133 argv[0]); in main()
140 name = argv[optind]; in main()
Dspidev_test.c162 static void parse_opts(int argc, char *argv[]) in parse_opts() argument
185 c = getopt_long(argc, argv, "D:s:d:b:lHOLC3NR24p:v", lopts, NULL); in parse_opts()
240 print_usage(argv[0]); in parse_opts()
252 int main(int argc, char *argv[]) in main() argument
260 parse_opts(argc, argv); in main()
/Documentation/laptops/
Ddslm.c132 int main(int argc, char **argv) in main() argument
140 disk = argv[1]; in main()
142 settle_time = atoi(argv[2]); in main()
143 disk = argv[3]; in main()
/Documentation/auxdisplay/
Dcfag12864b-example.c256 int main(int argc, char *argv[]) in main() argument
263 "Usually: /dev/fb0, /dev/fb1...\n", argv[0]); in main()
267 if (cfag12864b_init(argv[1])) { in main()
268 printf("Can't init %s fbdev\n", argv[1]); in main()
/Documentation/block/
Dioprio.txt116 int main(int argc, char *argv[])
121 while ((c = getopt(argc, argv, "+n:c:p:")) != EOF) {
153 if (!pid && argv[optind])
154 pid = strtol(argv[optind], NULL, 10);
173 if (argv[optind])
174 execvp(argv[optind], &argv[optind]);
/Documentation/usb/
Dgadget_printer.txt436 main(int argc, char *argv[])
449 if (argv[i][0] != '-') {
453 if (!strcmp(argv[i], "-get_status")) {
458 } else if (!strcmp(argv[i], "-paper_loaded")) {
463 } else if (!strcmp(argv[i], "-paper_out")) {
468 } else if (!strcmp(argv[i], "-selected")) {
473 } else if (!strcmp(argv[i], "-not_selected")) {
478 } else if (!strcmp(argv[i], "-error")) {
483 } else if (!strcmp(argv[i], "-no_error")) {
488 } else if (!strcmp(argv[i], "-read_data")) {
[all …]
Dgadget_hid.txt363 int main(int argc, const char *argv[])
377 argv[0]);
381 if (argv[2][0] != 'k' && argv[2][0] != 'm' && argv[2][0] != 'j')
384 filename = argv[1];
391 print_options(argv[2][0]);
426 if (argv[2][0] == 'k')
428 else if (argv[2][0] == 'm')
/Documentation/connector/
Ducon.c111 int main(int argc, char *argv[]) in main() argument
124 while ((s = getopt(argc, argv, "hs")) != -1) { in main()
142 out = fopen(argv[optind], "a+"); in main()
145 argv[1], strerror(errno)); in main()
/Documentation/ptp/
Dtestptp.c144 int main(int argc, char *argv[]) in main() argument
187 progname = strrchr(argv[0], '/'); in main()
188 progname = progname ? 1+progname : argv[0]; in main()
189 while (EOF != (c = getopt(argc, argv, "a:A:cd:e:f:ghi:k:lL:p:P:sSt:T:v"))) { in main()
/Documentation/accounting/
Dgetdelays.c255 int main(int argc, char *argv[]) in main() argument
283 c = getopt(argc, argv, "qdiw:r:m:t:p:vlC:c:"); in main()
347 if (execvp(argv[optind - 1], in main()
348 &argv[optind - 1]) < 0) in main()
/Documentation/vDSO/
Dvdso_test.c22 int main(int argc, char **argv) in main() argument
/Documentation/
Dbinfmt_misc.txt46 'P' - preserve-argv[0]. Legacy behavior of binfmt_misc is to overwrite
47 the original argv[0] with the full path to the binary. When this
49 vector for this purpose, thus preserving the original argv[0].
52 argv[] set to ["/bin/foo", "/usr/local/bin/blah", "blah"]. The
54 with argv[] set to ["blah"].
Djava.txt210 int main(int argc, char **argv);
284 int main(int argc, char **argv)
290 program = argv[0];
292 if(!argv[1])
294 classfile = fopen(argv[1], "rb");
296 error("%s: Error opening %s\n", program, argv[1]);
/Documentation/prctl/
Ddisable-tsc-on-off-stress-test.c81 int main(int argc, char **argv) in main() argument
Ddisable-tsc-ctxt-sw-stress-test.c77 int main(int argc, char **argv) in main() argument
Ddisable-tsc-test.c60 int main(int argc, char **argv) in main() argument
/Documentation/x86/
Dmtrr.txt286 int main (int argc, char **argv)
296 sentry.base = strtoul (argv[1], NULL, 0);
297 sentry.size = strtoul (argv[2], NULL, 0);
300 if (strcmp (argv[3], mtrr_strings[sentry.type]) == 0) break;
304 fprintf (stderr, "Illegal type: \"%s\"\n", argv[3]);
/Documentation/video4linux/cx2341x/
DREADME.hm1297 int main(int argc, char **argv)
103 else fin = fopen(argv[1], "r");
/Documentation/misc-devices/mei/
Dmei-amt-version.c438 int main(int argc, char **argv) in main() argument
447 verbose = (argc > 1 && strcmp(argv[1], "-v") == 0); in main()
/Documentation/cdrom/
Dide-cd368 main (int argc, char **argv)
378 program = argv[0];
380 ++argv;
390 if (strcmp (argv[0], "-v") == 0) {
392 ++argv;
396 device = argv[0];
399 slot = atoi (argv[1]) - 1;

12