/system/core/init/ |
H A D | init_parser.h | 22 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 D | init.h | 28 /* list of commands in an action */ 40 struct action { struct 110 struct action onrestart; /* Actions to execute on restart. */
|
H A D | parser.c | 14 struct action *act; 36 act = node_to_item(node, struct action, alist);
|
H A D | devices.c | 63 const char *action; member in struct:uevent 390 uevent->action = ""; 404 uevent->action = msg; 437 uevent->action, uevent->path, uevent->subsystem, 558 static void handle_device(const char *action, const char *devpath, argument 563 if(!strcmp(action, "add")) { 571 if(!strcmp(action, "remove")) { 590 if (!strcmp(uevent->action, "add")) 592 else if (!strcmp(uevent->action, "remove")) 637 handle_device(uevent->action, devpat [all...] |
H A D | init_parser.c | 505 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); 573 struct action *act; 591 void action_add_queue_tail(struct action *act) 598 struct action *action_remove_queue_hea [all...] |
H A D | init.c | 76 static struct action *cur_action = NULL; 517 static struct command *get_first_command(struct action *act) 527 static struct command *get_next_command(struct action *act, struct command *cmd) 539 static int is_last_command(struct action *act, struct command *cmd) 554 INFO("processing action %p (%s)\n", cur_action, cur_action->name); 571 INFO("command '%s' action=%s status=%d (%s:%d)\n",
|
/system/core/include/cutils/ |
H A D | debugger.h | 45 debugger_action_t action; member in struct:__anon30 54 debugger_action_t action; member in struct:__anon31
|
/system/netd/server/ |
H A D | NetlinkHandler.cpp | 61 int action = evt->getAction(); local 64 if (action == evt->NlActionAdd) { 66 } else if (action == evt->NlActionRemove) { 68 } else if (action == evt->NlActionChange) { 71 } else if (action == evt->NlActionLinkUp) { 73 } else if (action == evt->NlActionLinkDown) { 75 } else if (action == evt->NlActionAddressUpdated || 76 action == evt->NlActionAddressRemoved) { 80 if (action == evt->NlActionAddressRemoved && iface && address) { 89 notifyAddressChanged(action, addres 172 notifyAddressChanged(int action, const char *addr, const char *iface, const char *flags, const char *scope) argument 188 notifyRouteChange(int action, const char *route, const char *gateway, const char *iface) argument [all...] |
H A D | NetlinkHandler.h | 44 void notifyAddressChanged(int action, const char *addr, const char *iface, 48 void notifyRouteChange(int action, const char *route, const char *gateway, const char *iface);
|
H A D | RouteController.cpp | 182 // The netlink header is generated by this function based on |action| and |flags|. 184 WARN_UNUSED_RESULT int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { argument 186 .nlmsg_type = action, 256 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, argument 286 .action = static_cast<uint8_t>(table != RT_TABLE_UNSPEC ? FR_ACT_TO_TBL : 316 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_CREATE_REQUEST_FLAGS : NETLINK_REQUEST_FLAGS; 319 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov))) { 327 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, argument 329 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, 335 WARN_UNUSED_RESULT int modifyIpRoute(uint16_t action, uint32_ argument 580 modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, const char* physicalInterface, Permission permission) argument 739 modifyDefaultNetwork(uint16_t action, const char* interface, Permission permission) argument 759 modifyTetheredNetwork(uint16_t action, const char* inputInterface, const char* outputInterface) argument 790 modifyRoute(uint16_t action, const char* interface, const char* destination, const char* nexthop, RouteController::TableType tableType) argument [all...] |
/system/vold/ |
H A D | Process.h | 24 static void killProcessesWithOpenFiles(const char *path, int action); 39 void vold_killProcessesWithOpenFiles(const char *path, int action);
|
H A D | Process.cpp | 173 extern "C" void vold_killProcessesWithOpenFiles(const char *path, int action) { argument 174 Process::killProcessesWithOpenFiles(path, action); 179 * action = 0 to just warn, 180 * action = 1 to SIGHUP, 181 * action = 2 to SIGKILL 184 void Process::killProcessesWithOpenFiles(const char *path, int action) { argument 217 if (action == 1) { 220 } else if (action == 2) {
|
H A D | DirectVolume.cpp | 139 int action = evt->getAction(); local 142 if (action == NetlinkEvent::NlActionAdd) { 169 } else if (action == NetlinkEvent::NlActionRemove) { 175 } else if (action == NetlinkEvent::NlActionChange) {
|
H A D | Volume.cpp | 512 int action = 0; local 516 action = 2; // SIGKILL 518 action = 1; // SIGHUP 522 SLOGW("Failed to unmount %s (%s, retries %d, action %d)", 523 path, strerror(errno), retries, action); 525 Process::killProcessesWithOpenFiles(path, action);
|
H A D | VolumeManager.cpp | 1059 int action = 0; // default is to just complain local 1063 action = 2; // SIGKILL 1065 action = 1; // SIGHUP 1068 Process::killProcessesWithOpenFiles(mountPoint, action);
|
/system/core/libcutils/ |
H A D | debugger.c | 67 static int make_dump_request(debugger_action_t action, pid_t tid) { argument 79 msg32.action = action; 89 msg.action = action;
|
/system/core/debuggerd/ |
H A D | debuggerd.cpp | 49 debugger_action_t action; member in struct:debugger_request_t 161 out_request->action = msg.action; 169 if (msg.action == DEBUGGER_ACTION_CRASH) { 180 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) { 197 if (request->action == DEBUGGER_ACTION_CRASH) { 236 if (request.action == DEBUGGER_ACTION_CRASH) { 250 if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) { 256 } else if (request.action == DEBUGGER_ACTION_DUMP_BACKTRACE) { 301 if (request.action [all...] |
/system/core/libnetutils/ |
H A D | ifc_utils.c | 252 int ifc_act_on_address(int action, const char *name, const char *address, argument 303 req.n.nlmsg_type = action; 509 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument 541 result = ioctl(ifc_ctl_sock, action, &rt);
|
/system/core/adb/ |
H A D | transport.c | 524 int action; member in struct:tmsg 589 if(m.action == 0){ 693 m.action = 1; 704 m.action = 0;
|