Lines Matching refs:parent
365 kill_orphaned_pgrp(struct task_struct *tsk, struct task_struct *parent) in kill_orphaned_pgrp() argument
370 if (!parent) in kill_orphaned_pgrp()
374 parent = tsk->real_parent; in kill_orphaned_pgrp()
381 if (task_pgrp(parent) != pgrp && in kill_orphaned_pgrp()
382 task_session(parent) == task_session(tsk) && in kill_orphaned_pgrp()
689 BUG_ON((!t->ptrace) != (rcu_access_pointer(t->parent) == father)); in forget_original_parent()
691 t->parent = t->real_parent; in forget_original_parent()
1505 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) in child_wait_callback()
1511 void __wake_up_parent(struct task_struct *p, struct task_struct *parent) in __wake_up_parent() argument
1513 __wake_up_sync_key(&parent->signal->wait_chldexit, in __wake_up_parent()
1520 struct task_struct *parent = in is_effectively_child() local
1521 !ptrace ? target->real_parent : target->parent; in is_effectively_child()
1523 return current == parent || (!(wo->wo_flags & __WNOTHREAD) && in is_effectively_child()
1524 same_thread_group(current, parent)); in is_effectively_child()