Home
last modified time | relevance | path

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

/system/memory/lmkd/
Dreaper.cpp46 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()
Dreaper.h26 int pidfd; member
Dlmkd.cpp545 int pidfd; member
989 if (procp->pidfd >= 0 && procp->pidfd != last_kill_pid_or_fd) { in pid_remove()
990 close(procp->pidfd); in pid_remove()
1191 int pidfd = -1; in register_oom_adj_proc() local
1194 pidfd = TEMP_FAILURE_RETRY(pidfd_open(proc.pid, 0)); in register_oom_adj_proc()
1195 if (pidfd < 0) { in register_oom_adj_proc()
1208 procp->pidfd = pidfd; in register_oom_adj_proc()
2461 if (target.valid && reaper.kill({ target.pidfd, target.pid, target.uid }, true) == 0) { in watchdog_callback()
2590 int pidfd = procp->pidfd; in kill_one_process() local
2646 start_wait_for_proc_kill(pidfd < 0 ? pid : pidfd); in kill_one_process()
[all …]