Lines Matching refs:pgrp
21 void lwp_pgrp_dec_ref(rt_processgroup_t pgrp) in lwp_pgrp_dec_ref() argument
23 if (rt_atomic_add(&pgrp->ref, -1) == 1) in lwp_pgrp_dec_ref()
25 rt_mutex_detach(&(pgrp->mutex)); in lwp_pgrp_dec_ref()
28 pgrp->pgid = 0; in lwp_pgrp_dec_ref()
29 rt_free(pgrp); in lwp_pgrp_dec_ref()
192 process->pgrp = group; in lwp_pgrp_insert()
218 process->pgrp = RT_NULL; in lwp_pgrp_remove()
262 if (process->pgrp == old_group) in lwp_pgrp_move()
305 process->pgrp = group; in lwp_pgrp_update_children_info()
528 struct rt_processgroup pgrp; in list_processgroup() local
531 rt_memcpy(&pgrp, group, sizeof(struct rt_processgroup)); in list_processgroup()
534 if (pgrp.leader) in list_processgroup()
536 thread = rt_list_entry(pgrp.leader->t_grp.prev, struct rt_thread, sibling); in list_processgroup()
544 … rt_kprintf("%4d %4d %-*.*s\n", pgrp.pgid, pgrp.sid, RT_NAME_MAX, RT_NAME_MAX, name); in list_processgroup()