Home
last modified time | relevance | path

Searched refs:clopts (Results 1 – 2 of 2) sorted by relevance

/device/google/marlin/dataservices/datatop/src/
Ddatatop_opt.c55 void dtop_load_default_options(struct cli_opts *clopts) in dtop_load_default_options() argument
57 memset(clopts, 0, sizeof(struct cli_opts)); in dtop_load_default_options()
59 clopts->priority = DEFAULT_NICE; in dtop_load_default_options()
72 int dtop_parse_cli_opts(struct cli_opts *clopts, int argc, char **argv) in dtop_parse_cli_opts() argument
76 if (!clopts || !*argv) { in dtop_parse_cli_opts()
84 clopts->print_cl = OPT_CHOSE; in dtop_parse_cli_opts()
93 clopts->priority = strtol(optarg, 0, 10); in dtop_parse_cli_opts()
94 if (clopts->priority > 19 || clopts->priority < -20) { in dtop_parse_cli_opts()
102 clopts->poll_per = strtol(optarg, 0, 10); in dtop_parse_cli_opts()
103 if (clopts->poll_per <= 0) { in dtop_parse_cli_opts()
[all …]
Ddatatop_opt.h82 int dtop_parse_cli_opts(struct cli_opts *clopts, int argc, char **argv);
85 void dtop_load_default_options(struct cli_opts *clopts);