Lines Matching refs:proc
39 struct proc { struct
42 struct proc* pidhash_next; argument
46 static struct proc** pidhash = NULL;
63 static struct proc* pid_lookup(int pid) { in pid_lookup()
64 struct proc* procp; in pid_lookup()
104 struct proc* proc = pid_lookup(pid); in stats_write_lmk_kill_occurred_pid() local
105 if (!proc) return -EINVAL; in stats_write_lmk_kill_occurred_pid()
107 return stats_write_lmk_kill_occurred(uid, proc->taskname, oom_score, min_oom_score, in stats_write_lmk_kill_occurred_pid()
210 static void proc_insert(struct proc* procp) { in proc_insert()
212 pidhash = static_cast<struct proc**>(calloc(PIDHASH_SZ, sizeof(*pidhash))); in proc_insert()
226 struct proc* procp; in stats_remove_taskname()
227 struct proc* prevp; in stats_remove_taskname()
249 struct proc* procp = pid_lookup(pid); in stats_store_taskname()
256 procp = static_cast<struct proc*>(malloc(sizeof(struct proc))); in stats_store_taskname()
268 struct proc* procp; in stats_purge_tasknames()
269 struct proc* next; in stats_purge_tasknames()