Lines Matching refs:bg
2089 proc_t *leader, *fg, *bg; in ia_set_process_group() local
2200 for (bg = (proc_t *)pgfind(bg_pgid); bg != NULL; bg = bg->p_pglink) { in ia_set_process_group()
2201 if (bg->p_stat == SIDL) { in ia_set_process_group()
2209 if (bg->p_pid == bg->p_sessp->s_sid) { in ia_set_process_group()
2214 "group off:proc %p", bg); in ia_set_process_group()
2217 if (mutex_tryenter(&bg->p_lock) == 0) in ia_set_process_group()
2220 mutex_enter(&bg->p_lock); in ia_set_process_group()
2223 if ((tx = proctot(bg)) == NULL) { in ia_set_process_group()
2224 mutex_exit(&bg->p_lock); in ia_set_process_group()
2244 } while ((tx = tx->t_forw) != bg->p_tlist); in ia_set_process_group()
2245 mutex_exit(&bg->p_lock); in ia_set_process_group()