Lines Matching defs:pid
99 static pid_t rcapd_pid; /* rcapd's pid to ensure it's not */
134 proc_issystem(pid_t pid)
138 if (priocntl(P_PID, pid, PC_GETXPARMS, NULL, PC_KY_CLNAME, pc_clname,
151 pid_t pid = psinfop->pr_pid;
188 if (lproc->lpc_pid == pid) {
205 debug("insufficient memory to track new process %d", (int)pid);
208 lproc->lpc_pid = pid;
219 lproc->lpc_unscannable = unscannable || proc_issystem(pid);
249 (int)pid, psinfop->pr_psargs,
265 pid_t pid = member->lpc_pid;
268 debug_high("list_walk_all lpc %d\n", (int)pid);
271 (int)pid);
315 get_psinfo(pid_t pid, psinfo_t *psinfo, int cached_fd,
328 (int)pid, fd);
334 "/proc/%d/psinfo", (int)pid);
344 sizeof (*psinfo) && psinfo->pr_pid == pid)
374 proc_cb(const pid_t pid)
378 if (get_psinfo(pid, &psinfo, -1, NULL, NULL, NULL) == 0) {
590 pid_t pid;
600 pid = atoi(dirent->d_name);
601 ASSERT(pid != 0 || strcmp(dirent->d_name, "0") == 0);
602 if (pid == rcapd_pid)
605 cb(pid);
820 pid_t pid;
857 pid = lpc->lpc_pid;
859 debug_high("process %d freed\n", (int)pid);
1240 pid_t pid;
1246 pid = stat_get_rcapd_pid(rcfg.rcfg_stat_file);
1247 if (pid != rcapd_pid && pid != -1)