Searched refs:svc (Results 1 – 9 of 9) sorted by relevance
/system/core/init/ |
D | signal_handler.c | 48 struct service *svc; in wait_for_one_process() local 58 svc = service_find_by_pid(pid); in wait_for_one_process() 59 if (!svc) { in wait_for_one_process() 64 NOTICE("process '%s', pid %d exited\n", svc->name, pid); in wait_for_one_process() 66 if (!(svc->flags & SVC_ONESHOT)) { in wait_for_one_process() 68 NOTICE("process '%s' killing any children in process group\n", svc->name); in wait_for_one_process() 72 for (si = svc->sockets; si; si = si->next) { in wait_for_one_process() 78 svc->pid = 0; in wait_for_one_process() 79 svc->flags &= (~SVC_RUNNING); in wait_for_one_process() 82 if (svc->flags & SVC_ONESHOT) { in wait_for_one_process() [all …]
|
D | init.c | 161 void service_start(struct service *svc, const char *dynamic_args) in service_start() argument 175 svc->flags &= (~(SVC_DISABLED|SVC_RESTARTING|SVC_RESET)); in service_start() 176 svc->time_started = 0; in service_start() 183 if (svc->flags & SVC_RUNNING) { in service_start() 187 needs_console = (svc->flags & SVC_CONSOLE) ? 1 : 0; in service_start() 189 ERROR("service '%s' requires console\n", svc->name); in service_start() 190 svc->flags |= SVC_DISABLED; in service_start() 194 if (stat(svc->args[0], &s) != 0) { in service_start() 195 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name); in service_start() 196 svc->flags |= SVC_DISABLED; in service_start() [all …]
|
D | init_parser.c | 428 struct service *svc; in service_find_by_name() local 430 svc = node_to_item(node, struct service, slist); in service_find_by_name() 431 if (!strcmp(svc->name, name)) { in service_find_by_name() 432 return svc; in service_find_by_name() 441 struct service *svc; in service_find_by_pid() local 443 svc = node_to_item(node, struct service, slist); in service_find_by_pid() 444 if (svc->pid == pid) { in service_find_by_pid() 445 return svc; in service_find_by_pid() 454 struct service *svc; in service_find_by_keychord() local 456 svc = node_to_item(node, struct service, slist); in service_find_by_keychord() [all …]
|
D | keychords.c | 35 void add_service_keycodes(struct service *svc) in add_service_keycodes() argument 40 if (svc->keycodes) { in add_service_keycodes() 42 size = sizeof(*keychord) + svc->nkeycodes * sizeof(keychord->keycodes[0]); in add_service_keycodes() 54 keychord->count = svc->nkeycodes; in add_service_keycodes() 55 svc->keychord_id = keychord->id; in add_service_keycodes() 57 for (i = 0; i < svc->nkeycodes; i++) { in add_service_keycodes() 58 keychord->keycodes[i] = svc->keycodes[i]; in add_service_keycodes() 97 struct service *svc; in handle_keychord() local 116 svc = service_find_by_keychord(id); in handle_keychord() 117 if (svc) { in handle_keychord() [all …]
|
D | init.h | 125 void service_for_each(void (*func)(struct service *svc)); 127 void (*func)(struct service *svc)); 129 void (*func)(struct service *svc)); 130 void service_stop(struct service *svc); 131 void service_reset(struct service *svc); 132 void service_start(struct service *svc, const char *dynamic_args);
|
D | parser.c | 13 struct service *svc; in DUMP() 22 svc = node_to_item(node, struct service, slist); in DUMP() 23 RAW("service %s\n", svc->name); in DUMP() 24 RAW(" class '%s'\n", svc->classname); in DUMP() 26 for (n = 0; n < svc->nargs; n++) { in DUMP() 27 RAW(" '%s'", svc->args[n]); in DUMP() 30 for (si = svc->sockets; si; si = si->next) { in DUMP()
|
D | builtins.c | 196 static void service_start_if_not_disabled(struct service *svc) in service_start_if_not_disabled() argument 198 if (!(svc->flags & SVC_DISABLED)) { in service_start_if_not_disabled() 199 service_start(svc, NULL); in service_start_if_not_disabled() 576 struct service *svc; in do_start() local 577 svc = service_find_by_name(args[1]); in do_start() 578 if (svc) { in do_start() 579 service_start(svc, NULL); in do_start() 586 struct service *svc; in do_stop() local 587 svc = service_find_by_name(args[1]); in do_stop() 588 if (svc) { in do_stop() [all …]
|
D | keychords.h | 22 void add_service_keycodes(struct service *svc);
|
D | readme.txt | 231 init.svc.<name>
|