Searched refs:action (Results 1 - 23 of 23) 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
104 struct action onrestart; /* Actions to execute on restart. */
H A Dparser.c14 struct action *act;
36 act = node_to_item(node, struct action, alist);
H A Ddevices.c59 const char *action; member in struct:uevent
318 uevent->action = "";
332 uevent->action = msg;
365 uevent->action, uevent->path, uevent->subsystem,
479 static void handle_device(const char *action, const char *devpath, argument
484 if(!strcmp(action, "add")) {
492 if(!strcmp(action, "remove")) {
511 if (!strcmp(uevent->action, "add"))
513 else if (!strcmp(uevent->action, "remove"))
555 handle_device(uevent->action, devpat
[all...]
H A Dinit_parser.c505 void (*func)(struct action *act))
508 struct action *act;
510 act = node_to_item(node, struct action, alist);
520 struct action *act;
522 act = node_to_item(node, struct action, alist);
540 struct action *act;
542 act = node_to_item(node, struct action, alist);
571 struct action *act;
588 void action_add_queue_tail(struct action *act)
595 struct action *action_remove_queue_hea
[all...]
H A Dinit.c78 static struct action *cur_action = NULL;
504 static struct command *get_first_command(struct action *act)
514 static struct command *get_next_command(struct action *act, struct command *cmd)
526 static int is_last_command(struct action *act, struct command *cmd)
540 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) {
70 } else if (action == evt->NlActionAddressUpdated ||
71 action == evt->NlActionAddressRemoved) {
76 notifyAddressChanged(action, address, iface, flags, scope);
86 int action local
157 notifyAddressChanged(int action, const char *addr, const char *iface, const char *flags, const char *scope) argument
[all...]
H A DSecondaryTableController.h46 int modifyFromRule(int tableIndex, const char *action, const char *addr);
47 int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr);
75 int modifyRoute(SocketClient *cli, const char *action, char *iface, char *dest, int prefix,
80 void modifyRuleCount(int tableIndex, const char *action);
H A DNetlinkHandler.h42 void notifyAddressChanged(int action, const char *addr, const char *iface,
H A DSecondaryTableController.cpp133 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, argument
147 action,
159 action,
172 ALOGE("ip route %s failed: %s route %s %s/%d via %s dev %s table %d", action,
173 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
179 if (strcmp(action, ADD) == 0) {
187 modifyRuleCount(tableIndex, action);
192 void SecondaryTableController::modifyRuleCount(int tableIndex, const char *action) { argument
193 if (strcmp(action, ADD) == 0) {
242 int SecondaryTableController::modifyFromRule(int tableIndex, const char *action, argument
270 modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr) argument
[all...]
/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/core/include/cutils/
H A Ddebugger.h38 debugger_action_t action; member in struct:__anon39
/system/vold/
H A DProcess.h22 static void killProcessesWithOpenFiles(const char *path, int action);
H A DDirectVolume.cpp101 int action = evt->getAction(); local
104 if (action == NetlinkEvent::NlActionAdd) {
131 } else if (action == NetlinkEvent::NlActionRemove) {
137 } 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 DVolume.cpp480 int action = 0; local
484 action = 2; // SIGKILL
486 action = 1; // SIGHUP
490 SLOGW("Failed to unmount %s (%s, retries %d, action %d)",
491 path, strerror(errno), retries, action);
493 Process::killProcessesWithOpenFiles(path, action);
H A DVolumeManager.cpp770 int action = 0; // default is to just complain local
774 action = 2; // SIGKILL
776 action = 1; // SIGHUP
779 Process::killProcessesWithOpenFiles(mountPoint, action);
/system/core/libcutils/
H A Ddebugger.c32 msg.action = DEBUGGER_ACTION_DUMP_TOMBSTONE;
65 msg.action = DEBUGGER_ACTION_DUMP_BACKTRACE;
/system/core/debuggerd/
H A Ddebuggerd.c53 debugger_action_t action; member in struct:__anon21
227 out_request->action = msg.action;
234 if (msg.action == DEBUGGER_ACTION_CRASH) {
245 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) {
263 if (request->action == DEBUGGER_ACTION_CRASH) {
303 if (request.action == DEBUGGER_ACTION_CRASH) {
317 if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) {
322 } else if (request.action == DEBUGGER_ACTION_DUMP_BACKTRACE) {
371 if (request.action
[all...]
/system/core/libnetutils/
H A Difc_utils.c247 int ifc_act_on_address(int action, const char *name, const char *address, argument
298 req.n.nlmsg_type = action;
504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument
536 result = ioctl(ifc_ctl_sock, action, &rt);
820 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, argument
855 result = ioctl(ifc_ctl_sock6, action, &rtmsg);
867 int ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, argument
918 ret = ifc_act_on_ipv6_route(action, ifname, ipv6_dst.sin6_addr,
923 ret = ifc_act_on_ipv4_route(action, ifname, ipv4_dst.sin_addr,
/system/core/charger/
H A Dcharger.c133 const char *action; member in struct:uevent
376 uevent->action = "";
390 uevent->action = msg;
414 uevent->action, uevent->path, uevent->subsystem,
454 if (!strcmp(uevent->action, "add")) {
469 } else if (!strcmp(uevent->action, "remove")) {
476 } else if (!strcmp(uevent->action, "change")) {
495 LOGI("power supply %s (%s) %s (action=%s num_online=%d num_supplies=%d)\n",
497 uevent->action, charger->num_supplies_online, charger->num_supplies);
/system/core/adb/
H A Dtransport.c524 int action; member in struct:tmsg
589 if(m.action == 0){
693 m.action = 1;
704 m.action = 0;

Completed in 239 milliseconds