Searched refs:pidfd (Results 1 – 3 of 3) sorted by relevance
/system/memory/lmkd/ |
D | reaper.cpp | 46 static int process_mrelease(int pidfd, unsigned int flags) { in process_mrelease() argument 47 return syscall(__NR_process_mrelease, pidfd, flags); in process_mrelease() 113 if (pidfd_send_signal(target.pidfd, SIGKILL, NULL, 0)) { in reaper_main() 123 if (process_mrelease(target.pidfd, 0)) { in reaper_main() 134 close(target.pidfd); in reaper_main() 197 if (target.pidfd == -1) { in async_kill() 214 queue_.push_back({ dup(target.pidfd), target.pid, target.uid }); in async_kill() 224 if (target.pidfd < 0) { in kill() 233 int result = pidfd_send_signal(target.pidfd, SIGKILL, NULL, 0); in kill()
|
D | reaper.h | 26 int pidfd; member
|
D | lmkd.cpp | 510 int pidfd; member 969 if (procp->pidfd >= 0 && procp->pidfd != last_kill_pid_or_fd) { in pid_remove() 970 close(procp->pidfd); in pid_remove() 1214 int pidfd = -1; in cmd_procprio() local 1217 pidfd = TEMP_FAILURE_RETRY(pidfd_open(params.pid, 0)); in cmd_procprio() 1218 if (pidfd < 0) { in cmd_procprio() 1231 procp->pidfd = pidfd; in cmd_procprio() 2179 if (target.valid && reaper.kill({ target.pidfd, target.pid, target.uid }, true) == 0) { in watchdog_callback() 2308 int pidfd = procp->pidfd; in kill_one_process() local 2364 start_wait_for_proc_kill(pidfd < 0 ? pid : pidfd); in kill_one_process() [all …]
|