Lines Matching refs:proc_kinfo

138   struct ::kinfo_proc2 *proc_kinfo;  in GetNetBSDProcessUserAndGroup()  local
148 if ((proc_kinfo = ::kvm_getproc2(kdp, KERN_PROC_PID, pid, in GetNetBSDProcessUserAndGroup()
160 process_info.SetParentProcessID(proc_kinfo->p_ppid); in GetNetBSDProcessUserAndGroup()
161 process_info.SetUserID(proc_kinfo->p_ruid); in GetNetBSDProcessUserAndGroup()
162 process_info.SetGroupID(proc_kinfo->p_rgid); in GetNetBSDProcessUserAndGroup()
163 process_info.SetEffectiveUserID(proc_kinfo->p_uid); in GetNetBSDProcessUserAndGroup()
164 process_info.SetEffectiveGroupID(proc_kinfo->p_gid); in GetNetBSDProcessUserAndGroup()
194 struct ::kinfo_proc2 *proc_kinfo; in FindProcessesImpl() local
196 if ((proc_kinfo = ::kvm_getproc2(kdp, KERN_PROC_ALL, 0, in FindProcessesImpl()
207 if (proc_kinfo[i].p_pid < 1) in FindProcessesImpl()
210 if (!all_users && proc_kinfo[i].p_ruid != our_uid) in FindProcessesImpl()
213 if (proc_kinfo[i].p_pid == our_pid || // Skip this process in FindProcessesImpl()
214 proc_kinfo[i].p_pid == 0 || // Skip kernel (kernel pid is 0) in FindProcessesImpl()
215 proc_kinfo[i].p_stat == LSZOMB || // Zombies are bad in FindProcessesImpl()
216 proc_kinfo[i].p_flag & P_TRACED || // Being debugged? in FindProcessesImpl()
217 proc_kinfo[i].p_flag & P_WEXIT) // Working on exiting in FindProcessesImpl()
223 if (proc_kinfo[i].p_nlwps > 1) { in FindProcessesImpl()
226 if ((::pid_t)process_infos[pi].GetProcessID() == proc_kinfo[i].p_pid) { in FindProcessesImpl()
236 process_info.SetProcessID(proc_kinfo[i].p_pid); in FindProcessesImpl()
237 process_info.SetParentProcessID(proc_kinfo[i].p_ppid); in FindProcessesImpl()
238 process_info.SetUserID(proc_kinfo[i].p_ruid); in FindProcessesImpl()
239 process_info.SetGroupID(proc_kinfo[i].p_rgid); in FindProcessesImpl()
240 process_info.SetEffectiveUserID(proc_kinfo[i].p_uid); in FindProcessesImpl()
241 process_info.SetEffectiveGroupID(proc_kinfo[i].p_gid); in FindProcessesImpl()