Lines Matching refs:bg
2192 proc_t *leader, *fg, *bg; in ia_set_process_group() local
2307 for (bg = (proc_t *)pgfind(bg_pgid); bg != NULL; bg = bg->p_pglink) { in ia_set_process_group()
2308 if (bg->p_stat == SIDL) { in ia_set_process_group()
2316 if (bg->p_pid == bg->p_sessp->s_sid) { in ia_set_process_group()
2321 "group off:proc %p", bg); in ia_set_process_group()
2324 if (mutex_tryenter(&bg->p_lock) == 0) in ia_set_process_group()
2327 mutex_enter(&bg->p_lock); in ia_set_process_group()
2330 if ((tx = proctot(bg)) == NULL) { in ia_set_process_group()
2331 mutex_exit(&bg->p_lock); in ia_set_process_group()
2355 } while ((tx = tx->t_forw) != bg->p_tlist); in ia_set_process_group()
2356 mutex_exit(&bg->p_lock); in ia_set_process_group()