Searched defs:action (Results 1 - 13 of 13) sorted by relevance

/system/core/include/cutils/
H A Ddebugger.h45 debugger_action_t action; member in struct:__anon30
54 debugger_action_t action; member in struct:__anon31
/system/core/libcutils/
H A Ddebugger.c67 static int make_dump_request(debugger_action_t action, pid_t tid) { argument
79 msg32.action = action;
89 msg.action = action;
/system/vold/
H A DProcess.cpp173 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 DDirectVolume.cpp139 int action = evt->getAction(); local
142 if (action == NetlinkEvent::NlActionAdd) {
169 } else if (action == NetlinkEvent::NlActionRemove) {
175 } else if (action == NetlinkEvent::NlActionChange) {
H A DVolume.cpp512 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 DVolumeManager.cpp1059 int action = 0; // default is to just complain local
1063 action = 2; // SIGKILL
1065 action = 1; // SIGHUP
1068 Process::killProcessesWithOpenFiles(mountPoint, action);
/system/core/debuggerd/
H A Ddebuggerd.cpp49 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/init/
H A Dinit.h28 /* list of commands in an action */
40 struct action { struct
110 struct action onrestart; /* Actions to execute on restart. */
H A Ddevices.c63 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...]
/system/netd/server/
H A DNetlinkHandler.cpp61 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 DRouteController.cpp182 // 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/core/libnetutils/
H A Difc_utils.c252 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 Dtransport.c524 int action; member in struct:tmsg
589 if(m.action == 0){
693 m.action = 1;
704 m.action = 0;

Completed in 252 milliseconds