Lines Matching defs:top_proc
86 struct top_proc
103 struct top_proc *next;
191 static struct top_proc *ptable[HASH_SIZE];
192 static struct top_proc **pactive;
193 static struct top_proc **nextactive;
240 update_procname(struct top_proc *proc, char *cmd)
262 * top_proc structure is freed, it is added to a freelist and reused.
265 static struct top_proc *freelist = NULL;
266 static struct top_proc *procblock = NULL;
267 static struct top_proc *procmax = NULL;
269 static struct top_proc *
272 struct top_proc *p;
289 p = procblock = (struct top_proc *)calloc(PROCBLOCK_SIZE,
290 sizeof(struct top_proc));
305 free_proc(struct top_proc *proc)
361 pactive = (struct top_proc **)malloc(sizeof(struct top_proc *) * INITIAL_ACTIVE_SIZE);
365 memset(ptable, 0, HASH_SIZE * sizeof(struct top_proc *));
532 read_one_proc_stat(pid_t pid, struct top_proc *proc, struct process_select *sel)
664 struct top_proc *proc;
714 struct top_proc **active;
723 struct top_proc *pp;
784 pactive = (struct top_proc **)realloc(pactive,
785 sizeof(struct top_proc *) * total_procs);
794 struct top_proc *last;
795 struct top_proc *ptmp;
796 struct top_proc *parent;
861 qsort(pactive, si->p_active, sizeof(struct top_proc *),
889 struct top_proc *p = *nextactive++;
956 struct top_proc **pp1,
957 struct top_proc **pp2)
959 register struct top_proc *p1;
960 register struct top_proc *p2;
983 struct top_proc **pp1,
984 struct top_proc **pp2)
986 register struct top_proc *p1;
987 register struct top_proc *p2;
1010 struct top_proc **pp1,
1011 struct top_proc **pp2)
1013 register struct top_proc *p1;
1014 register struct top_proc *p2;
1037 struct top_proc **pp1,
1038 struct top_proc **pp2)
1040 register struct top_proc *p1;
1041 register struct top_proc *p2;
1064 struct top_proc **pp1,
1065 struct top_proc **pp2)
1067 register struct top_proc *p1;
1068 register struct top_proc *p2;