Searched refs:pidhash (Results 1 – 2 of 2) sorted by relevance
46 static struct proc** pidhash = NULL; variable66 if (!pidhash) return NULL; in pid_lookup()68 for (procp = pidhash[pid_hashfn(pid)]; procp && procp->pid != pid; procp = procp->pidhash_next) in pid_lookup()211 if (!pidhash) { in proc_insert()212 pidhash = static_cast<struct proc**>(calloc(PIDHASH_SZ, sizeof(*pidhash))); in proc_insert()216 procp->pidhash_next = pidhash[hval]; in proc_insert()217 pidhash[hval] = procp; in proc_insert()221 if (!enable_stats_log || !pidhash) { in stats_remove_taskname()229 for (procp = pidhash[hval], prevp = NULL; procp && procp->pid != pid; in stats_remove_taskname()237 pidhash[hval] = procp->pidhash_next; in stats_remove_taskname()[all …]
509 static struct proc *pidhash[PIDHASH_SZ]; variable667 struct proc* procp = pidhash[i]; in remove_claims()822 for (procp = pidhash[pid_hashfn(pid)]; procp && procp->pid != pid; in pid_lookup()865 procp->pidhash_next = pidhash[hval]; in proc_insert()866 pidhash[hval] = procp; in proc_insert()875 for (procp = pidhash[hval], prevp = NULL; procp && procp->pid != pid; in pid_remove()883 pidhash[hval] = procp->pidhash_next; in pid_remove()1210 procp = pidhash[i]; in cmd_procpurge()