/system/netd/server/ |
D | NetlinkHandler.cpp | 61 int action = evt->getAction(); in onEvent() local 64 if (action == evt->NlActionAdd) { in onEvent() 66 } else if (action == evt->NlActionRemove) { in onEvent() 68 } else if (action == evt->NlActionChange) { in onEvent() 71 } else if (action == evt->NlActionLinkUp) { in onEvent() 73 } else if (action == evt->NlActionLinkDown) { in onEvent() 75 } else if (action == evt->NlActionAddressUpdated || in onEvent() 76 action == evt->NlActionAddressRemoved) { in onEvent() 80 if (action == evt->NlActionAddressRemoved && iface && address) { in onEvent() 89 notifyAddressChanged(action, address, iface, flags, scope); in onEvent() [all …]
|
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);
|
D | RouteController.cpp | 184 WARN_UNUSED_RESULT int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { in sendNetlinkRequest() argument 186 .nlmsg_type = action, in sendNetlinkRequest() 256 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument 286 .action = static_cast<uint8_t>(table != RT_TABLE_UNSPEC ? FR_ACT_TO_TBL : in modifyIpRule() 316 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_CREATE_REQUEST_FLAGS : NETLINK_REQUEST_FLAGS; in modifyIpRule() 319 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov))) { in modifyIpRule() 327 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument 329 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule() 335 WARN_UNUSED_RESULT int modifyIpRoute(uint16_t action, uint32_t table, const char* interface, in modifyIpRoute() argument 416 uint16_t flags = (action == RTM_NEWROUTE) ? NETLINK_CREATE_REQUEST_FLAGS : in modifyIpRoute() [all …]
|
/system/core/init/ |
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));
|
D | init_parser.c | 505 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() 573 struct action *act; in queue_builtin_action() 591 void action_add_queue_tail(struct action *act) in action_add_queue_tail() 598 struct action *action_remove_queue_head(void) in action_remove_queue_head() [all …]
|
D | devices.c | 63 const char *action; member 390 uevent->action = ""; in parse_event() 404 uevent->action = msg; in parse_event() 437 uevent->action, uevent->path, uevent->subsystem, in parse_event() 558 static void handle_device(const char *action, const char *devpath, in handle_device() argument 563 if(!strcmp(action, "add")) { in handle_device() 571 if(!strcmp(action, "remove")) { in handle_device() 590 if (!strcmp(uevent->action, "add")) in handle_platform_device_event() 592 else if (!strcmp(uevent->action, "remove")) in handle_platform_device_event() 637 handle_device(uevent->action, devpath, uevent->path, 1, in handle_block_device_event() [all …]
|
D | init.h | 40 struct action { struct 110 struct action onrestart; /* Actions to execute on restart. */
|
D | readme.txt | 28 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 116 of events and used to cause an action to occur. 252 Trigger an event. Used to queue an action from another 253 action. 270 init.action 271 Equal to the name of the action currently being executed or "" if none
|
D | parser.c | 14 struct action *act; in DUMP() 36 act = node_to_item(node, struct action, alist); in DUMP()
|
D | init.c | 76 static struct action *cur_action = NULL; 517 static struct command *get_first_command(struct action *act) in get_first_command() 527 static struct command *get_next_command(struct action *act, struct command *cmd) in get_next_command() 539 static int is_last_command(struct action *act, struct command *cmd) in is_last_command()
|
/system/core/libcutils/ |
D | debugger.c | 67 static int make_dump_request(debugger_action_t action, pid_t tid) { in make_dump_request() argument 79 msg32.action = action; in make_dump_request() 89 msg.action = action; in make_dump_request()
|
/system/core/debuggerd/ |
D | debuggerd.cpp | 49 debugger_action_t action; member 161 out_request->action = msg.action; in read_request() 169 if (msg.action == DEBUGGER_ACTION_CRASH) { in read_request() 180 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) { in read_request() 197 if (request->action == DEBUGGER_ACTION_CRASH) { in should_attach_gdb() 236 if (request.action == DEBUGGER_ACTION_CRASH) { in handle_request() 250 if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) { in handle_request() 256 } else if (request.action == DEBUGGER_ACTION_DUMP_BACKTRACE) { in handle_request() 301 if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) { in handle_request()
|
/system/core/include/cutils/ |
D | debugger.h | 45 debugger_action_t action; member 54 debugger_action_t action; member
|
/system/vold/ |
D | Process.h | 24 static void killProcessesWithOpenFiles(const char *path, int action); 39 void vold_killProcessesWithOpenFiles(const char *path, int action);
|
D | Process.cpp | 173 extern "C" void vold_killProcessesWithOpenFiles(const char *path, int action) { in vold_killProcessesWithOpenFiles() argument 174 Process::killProcessesWithOpenFiles(path, action); in vold_killProcessesWithOpenFiles() 184 void Process::killProcessesWithOpenFiles(const char *path, int action) { in killProcessesWithOpenFiles() argument 217 if (action == 1) { in killProcessesWithOpenFiles() 220 } else if (action == 2) { in killProcessesWithOpenFiles()
|
D | DirectVolume.cpp | 139 int action = evt->getAction(); in handleBlockEvent() local 142 if (action == NetlinkEvent::NlActionAdd) { in handleBlockEvent() 169 } else if (action == NetlinkEvent::NlActionRemove) { in handleBlockEvent() 175 } else if (action == NetlinkEvent::NlActionChange) { in handleBlockEvent()
|
D | Volume.cpp | 512 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()
|
D | VolumeManager.cpp | 1059 int action = 0; // default is to just complain in unmountLoopImage() local 1063 action = 2; // SIGKILL in unmountLoopImage() 1065 action = 1; // SIGHUP in unmountLoopImage() 1068 Process::killProcessesWithOpenFiles(mountPoint, action); in unmountLoopImage()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 252 int ifc_act_on_address(int action, const char *name, const char *address, in ifc_act_on_address() argument 303 req.n.nlmsg_type = action; in ifc_act_on_address() 509 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 541 result = ioctl(ifc_ctl_sock, action, &rt); in ifc_act_on_ipv4_route()
|
/system/core/adb/ |
D | transport.c | 524 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/ |
D | init.rc | 183 # this in another action so that the load will be scheduled after the prior 324 # If there is no fs-post-data action in the init.<device>.rc file, you 327 # Set indication (checked by vold) that we have finished this action
|