Lines Matching defs:pick
2342 proc_t pick;
2388 for (pick = NULL; p != NULL; p = p->p_pglist.le_next) {
2389 if (proc_compare(pick, p)) {
2390 pick = p;
2393 pickpid = pick->p_pid;
2399 pick = proc_find(pickpid);
2400 if (pick == PROC_NULL)
2403 if (TAILQ_EMPTY(&pick->p_uthlist) ||
2404 (uthread = TAILQ_FIRST(&pick->p_uthlist)) == NULL ||
2409 proc_rele(pick);
2433 calcru(pick, &utime, &stime, NULL);
2434 proc_rele(pick);
2438 pick->p_comm,
2439 pick->p_pid,
2504 * pick the one with the smallest sleep time