Home
last modified time | relevance | path

Searched refs:max_processes (Results 1 – 3 of 3) sorted by relevance

/system/core/libprocessgroup/
Dprocessgroup.cpp304 int* max_processes) { in KillProcessGroup() argument
319 if (max_processes != nullptr) { in KillProcessGroup()
320 *max_processes = 0; in KillProcessGroup()
326 if (max_processes != nullptr && processes > *max_processes) { in KillProcessGroup()
327 *max_processes = processes; in KillProcessGroup()
369 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroup() argument
370 return KillProcessGroup(uid, initialPid, signal, 40 /*retries*/, max_processes); in killProcessGroup()
373 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroupOnce() argument
374 return KillProcessGroup(uid, initialPid, signal, 0 /*retries*/, max_processes); in killProcessGroupOnce()
/system/core/libprocessgroup/include/processgroup/
Dprocessgroup.h52 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes = nullptr);
56 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes = nullptr);
/system/core/init/
Dservice.cpp198 int max_processes = 0; in KillProcessGroup() local
201 r = killProcessGroupOnce(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup()
203 r = killProcessGroup(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup()
206 if (report_oneshot && max_processes > 0) { in KillProcessGroup()
208 << "Killed " << max_processes in KillProcessGroup()