Searched refs:action (Results 1 - 20 of 20) sorted by relevance

/system/core/init/
H A Dinit_parser.h22 struct action;
24 struct action *action_remove_queue_head(void);
25 void action_add_queue_tail(struct action *act);
27 void (*func)(struct action *act));
H A Dinit.h28 /* list of commands in an action */
36 struct action { struct
101 struct action onrestart; /* Actions to execute on restart. */
H A Dinit_parser.c334 void (*func)(struct action *act))
337 struct action *act;
339 act = node_to_item(node, struct action, alist);
349 struct action *act;
351 act = node_to_item(node, struct action, alist);
369 struct action *act;
371 act = node_to_item(node, struct action, alist);
401 struct action *act;
417 void action_add_queue_tail(struct action *act)
422 struct action *action_remove_queue_hea
[all...]
H A Ddevices.c51 const char *action; member in struct:uevent
279 uevent->action = "";
292 uevent->action = msg;
322 uevent->action, uevent->path, uevent->subsystem,
438 static void handle_device(const char *action, const char *devpath, argument
443 if(!strcmp(action, "add")) {
451 if(!strcmp(action, "remove")) {
470 if (!strcmp(uevent->action, "add"))
472 else if (!strcmp(uevent->action, "remove"))
514 handle_device(uevent->action, devpat
[all...]
H A Dparser.c14 struct action *act;
36 act = node_to_item(node, struct action, alist);
H A Dinit.c71 static struct action *cur_action = NULL;
462 static struct command *get_first_command(struct action *act)
472 static struct command *get_next_command(struct action *act, struct command *cmd)
484 static int is_last_command(struct action *act, struct command *cmd)
498 INFO("processing action %p (%s)\n", cur_action, cur_action->name);
/system/netd/
H A DNetlinkHandler.cpp56 int action = evt->getAction(); local
59 if (action == evt->NlActionAdd) {
61 } else if (action == evt->NlActionRemove) {
63 } else if (action == evt->NlActionChange) {
66 } else if (action == evt->NlActionLinkUp) {
68 } else if (action == evt->NlActionLinkDown) {
H A DSecondaryTableController.cpp82 int SecondaryTableController::modifyRoute(SocketClient *cli, char *action, char *iface, char *dest, argument
89 IP_PATH, action, dest, prefix, iface, tableIndex+BASE_TABLE_NUMBER);
92 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
96 LOGE("ip route %s failed: %s route %s %s/%d via %s dev %s table %d", action,
97 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
103 if (strcmp(action, ADD) == 0) {
H A DSecondaryTableController.h38 int modifyRoute(SocketClient *cli, char *action, char *iface, char *dest, int prefix,
/system/core/sh/
H A Dtrap.c134 char *action; local
150 action = NULL;
168 action = *ap++;
181 if (action)
182 action = savestr(action);
187 trap[signo] = action;
234 int action; local
240 action = S_DFL;
242 action
[all...]
H A Derror.c285 short action; /* operation which encountered the error */ member in struct:errname
355 errmsg(int e, int action) argument
361 if (ep->errcode == e && (ep->action & action) != 0)
/system/vold/
H A DProcess.h22 static void killProcessesWithOpenFiles(const char *path, int action);
H A DVolume.cpp540 int action = 0; local
544 action = 2; // SIGKILL
546 action = 1; // SIGHUP
549 SLOGW("Failed to move %s -> %s (%s, retries %d, action %d)",
550 src, dst, strerror(errno), retries, action);
551 Process::killProcessesWithOpenFiles(src, action);
573 int action = 0; local
577 action = 2; // SIGKILL
579 action = 1; // SIGHUP
583 SLOGW("Failed to unmount %s (%s, retries %d, action
[all...]
H A DDirectVolume.cpp96 int action = evt->getAction(); local
99 if (action == NetlinkEvent::NlActionAdd) {
116 } else if (action == NetlinkEvent::NlActionRemove) {
122 } else if (action == NetlinkEvent::NlActionChange) {
H A DProcess.cpp175 * action = 0 to just warn,
176 * action = 1 to SIGHUP,
177 * action = 2 to SIGKILL
180 void Process::killProcessesWithOpenFiles(const char *path, int action) { argument
213 if (action == 1) {
216 } else if (action == 2) {
H A DVolumeManager.cpp518 int action = 0; // default is to just complain local
522 action = 2; // SIGKILL
524 action = 1; // SIGHUP
527 Process::killProcessesWithOpenFiles(mountPoint, action);
/system/media/wilhelm/tests/sandbox/
H A Dmonkey.c199 #define _(entryState, action, probability) {entryState, action, probability, #action, 0},
296 printf("state %d action %s count %u\n",
/system/core/libnetutils/
H A Difc_utils.c248 int ifc_act_on_address(int action, const char *name, const char *address, argument
299 req.n.nlmsg_type = action;
505 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument
537 result = ioctl(ifc_ctl_sock, action, &rt);
825 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, argument
860 result = ioctl(ifc_ctl_sock6, action, &rtmsg);
872 int ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, argument
923 ret = ifc_act_on_ipv6_route(action, ifname, ipv6_dst.sin6_addr,
928 ret = ifc_act_on_ipv4_route(action, ifname, ipv4_dst.sin_addr,
/system/core/charger/
H A Dcharger.c128 const char *action; member in struct:uevent
356 uevent->action = "";
370 uevent->action = msg;
394 uevent->action, uevent->path, uevent->subsystem,
434 if (!strcmp(uevent->action, "add")) {
449 } else if (!strcmp(uevent->action, "remove")) {
456 } else if (!strcmp(uevent->action, "change")) {
475 LOGI("power supply %s (%s) %s (action=%s num_online=%d num_supplies=%d)\n",
477 uevent->action, charger->num_supplies_online, charger->num_supplies);
/system/core/adb/
H A Dtransport.c519 int action; member in struct:tmsg
584 if(m.action == 0){
679 m.action = 1;
690 m.action = 0;

Completed in 185 milliseconds