Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 26) sorted by relevance

12

/system/core/sh/
Dtrap.c134 char *action; in trapcmd() local
150 action = NULL; in trapcmd()
168 action = *ap++; in trapcmd()
181 if (action) in trapcmd()
182 action = savestr(action); in trapcmd()
187 trap[signo] = action; in trapcmd()
234 int action; in setsignal() local
240 action = S_DFL; in setsignal()
242 action = S_CATCH; in setsignal()
244 action = S_IGN; in setsignal()
[all …]
Derror.c285 short action; /* operation which encountered the error */ member
355 errmsg(int e, int action) in errmsg() argument
361 if (ep->errcode == e && (ep->action & action) != 0) in errmsg()
/system/netd/
DNetlinkHandler.cpp56 int action = evt->getAction(); in onEvent() local
59 if (action == evt->NlActionAdd) { in onEvent()
61 } else if (action == evt->NlActionRemove) { in onEvent()
63 } else if (action == evt->NlActionChange) { in onEvent()
66 } else if (action == evt->NlActionLinkUp) { in onEvent()
68 } else if (action == evt->NlActionLinkDown) { in onEvent()
70 } else if (action == evt->NlActionAddressUpdated || in onEvent()
71 action == evt->NlActionAddressRemoved) { in onEvent()
76 notifyAddressChanged(action, address, iface, flags, scope); in onEvent()
86 int action = evt->getAction(); in onEvent() local
[all …]
DSecondaryTableController.cpp124 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, in modifyRoute() argument
138 action, in modifyRoute()
150 action, in modifyRoute()
163 ALOGE("ip route %s failed: %s route %s %s/%d via %s dev %s table %d", action, in modifyRoute()
164 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER); in modifyRoute()
170 if (strcmp(action, ADD) == 0) { in modifyRoute()
178 modifyRuleCount(tableIndex, action); in modifyRoute()
183 void SecondaryTableController::modifyRuleCount(int tableIndex, const char *action) { in modifyRuleCount() argument
184 if (strcmp(action, ADD) == 0) { in modifyRuleCount()
233 int SecondaryTableController::modifyFromRule(int tableIndex, const char *action, in modifyFromRule() argument
[all …]
DSecondaryTableController.h45 int modifyFromRule(int tableIndex, const char *action, const char *addr);
46 int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr);
72 int modifyRoute(SocketClient *cli, const char *action, char *iface, char *dest, int prefix,
77 void modifyRuleCount(int tableIndex, const char *action);
DNetlinkHandler.h42 void notifyAddressChanged(int action, const char *addr, const char *iface,
/system/core/init/
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));
Ddevices.c59 const char *action; member
318 uevent->action = ""; in parse_event()
332 uevent->action = msg; in parse_event()
365 uevent->action, uevent->path, uevent->subsystem, in parse_event()
479 static void handle_device(const char *action, const char *devpath, in handle_device() argument
484 if(!strcmp(action, "add")) { in handle_device()
492 if(!strcmp(action, "remove")) { in handle_device()
511 if (!strcmp(uevent->action, "add")) in handle_platform_device_event()
513 else if (!strcmp(uevent->action, "remove")) in handle_platform_device_event()
555 handle_device(uevent->action, devpath, uevent->path, 1, in handle_block_device_event()
[all …]
Dinit_parser.c505 void (*func)(struct action *act)) in action_for_each_trigger()
508 struct action *act; in action_for_each_trigger()
510 act = node_to_item(node, struct action, alist); in action_for_each_trigger()
520 struct action *act; in queue_property_triggers()
522 act = node_to_item(node, struct action, alist); in queue_property_triggers()
540 struct action *act; in queue_all_property_triggers()
542 act = node_to_item(node, struct action, alist); in queue_all_property_triggers()
571 struct action *act; in queue_builtin_action()
588 void action_add_queue_tail(struct action *act) in action_add_queue_tail()
595 struct action *action_remove_queue_head(void) in action_remove_queue_head()
[all …]
Dinit.h36 struct action { struct
104 struct action onrestart; /* Actions to execute on restart. */
Dreadme.txt28 is used to determine when the action should occur. When an event
29 occurs which matches an action's trigger, that action is added to
33 Each action in the queue is dequeued in sequence and each command in
34 that action is executed in sequence. Init handles other activities
113 of events and used to cause an action to occur.
233 Trigger an event. Used to queue an action from another
234 action.
251 init.action
252 Equal to the name of the action currently being executed or "" if none
Dparser.c14 struct action *act; in DUMP()
36 act = node_to_item(node, struct action, alist); in DUMP()
Dinit.c78 static struct action *cur_action = NULL;
504 static struct command *get_first_command(struct action *act) in get_first_command()
514 static struct command *get_next_command(struct action *act, struct command *cmd) in get_next_command()
526 static int is_last_command(struct action *act, struct command *cmd) in is_last_command()
/system/core/debuggerd/
Ddebuggerd.c53 debugger_action_t action; member
227 out_request->action = msg.action; in read_request()
234 if (msg.action == DEBUGGER_ACTION_CRASH) { in read_request()
245 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) { in read_request()
263 if (request->action == DEBUGGER_ACTION_CRASH) { in should_attach_gdb()
303 if (request.action == DEBUGGER_ACTION_CRASH) { in handle_request()
317 if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) { in handle_request()
322 } else if (request.action == DEBUGGER_ACTION_DUMP_BACKTRACE) { in handle_request()
371 if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) { in handle_request()
/system/core/libcutils/
Ddebugger.c32 msg.action = DEBUGGER_ACTION_DUMP_TOMBSTONE; in dump_tombstone()
65 msg.action = DEBUGGER_ACTION_DUMP_BACKTRACE; in dump_backtrace_to_file()
/system/vold/
DProcess.cpp180 void Process::killProcessesWithOpenFiles(const char *path, int action) { in killProcessesWithOpenFiles() argument
213 if (action == 1) { in killProcessesWithOpenFiles()
216 } else if (action == 2) { in killProcessesWithOpenFiles()
DProcess.h22 static void killProcessesWithOpenFiles(const char *path, int action);
DDirectVolume.cpp101 int action = evt->getAction(); in handleBlockEvent() local
104 if (action == NetlinkEvent::NlActionAdd) { in handleBlockEvent()
131 } else if (action == NetlinkEvent::NlActionRemove) { in handleBlockEvent()
137 } else if (action == NetlinkEvent::NlActionChange) { in handleBlockEvent()
DVolume.cpp512 int action = 0; in doUnmount() local
516 action = 2; // SIGKILL in doUnmount()
518 action = 1; // SIGHUP in doUnmount()
523 path, strerror(errno), retries, action); in doUnmount()
525 Process::killProcessesWithOpenFiles(path, action); in doUnmount()
DVolumeManager.cpp818 int action = 0; // default is to just complain in unmountLoopImage() local
822 action = 2; // SIGKILL in unmountLoopImage()
824 action = 1; // SIGHUP in unmountLoopImage()
827 Process::killProcessesWithOpenFiles(mountPoint, action); in unmountLoopImage()
/system/core/include/cutils/
Ddebugger.h38 debugger_action_t action; member
/system/core/libnetutils/
Difc_utils.c247 int ifc_act_on_address(int action, const char *name, const char *address, in ifc_act_on_address() argument
298 req.n.nlmsg_type = action; in ifc_act_on_address()
504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route() argument
536 result = ioctl(ifc_ctl_sock, action, &rt); in ifc_act_on_ipv4_route()
820 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, in ifc_act_on_ipv6_route() argument
855 result = ioctl(ifc_ctl_sock6, action, &rtmsg); in ifc_act_on_ipv6_route()
867 int ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, in ifc_act_on_route() argument
918 ret = ifc_act_on_ipv6_route(action, ifname, ipv6_dst.sin6_addr, in ifc_act_on_route()
923 ret = ifc_act_on_ipv4_route(action, ifname, ipv4_dst.sin_addr, in ifc_act_on_route()
/system/core/charger/
Dcharger.c133 const char *action; member
376 uevent->action = ""; in parse_uevent()
390 uevent->action = msg; in parse_uevent()
414 uevent->action, uevent->path, uevent->subsystem, in parse_uevent()
454 if (!strcmp(uevent->action, "add")) { in process_ps_uevent()
469 } else if (!strcmp(uevent->action, "remove")) { in process_ps_uevent()
476 } else if (!strcmp(uevent->action, "change")) { in process_ps_uevent()
497 uevent->action, charger->num_supplies_online, charger->num_supplies); in process_ps_uevent()
/system/core/adb/
Dtransport.c524 int action; member
589 if(m.action == 0){ in transport_registration_func()
693 m.action = 1; in register_transport()
704 m.action = 0; in remove_transport()
/system/core/rootdir/
Dinit.rc261 # If there is no fs-post-data action in the init.<device>.rc file, you
264 # Set indication (checked by vold) that we have finished this action

12