Lines Matching refs:child
49 extern long arch_ptrace(struct task_struct *child, long request,
54 extern int ptrace_request(struct task_struct *child, long request,
57 extern void __ptrace_link(struct task_struct *child,
60 extern void __ptrace_unlink(struct task_struct *child);
90 static inline int ptrace_reparented(struct task_struct *child) in ptrace_reparented() argument
92 return !same_thread_group(child->real_parent, child->parent); in ptrace_reparented()
95 static inline void ptrace_unlink(struct task_struct *child) in ptrace_unlink() argument
97 if (unlikely(child->ptrace)) in ptrace_unlink()
98 __ptrace_unlink(child); in ptrace_unlink()
200 static inline void ptrace_init_task(struct task_struct *child, bool ptrace) in ptrace_init_task() argument
202 INIT_LIST_HEAD(&child->ptrace_entry); in ptrace_init_task()
203 INIT_LIST_HEAD(&child->ptraced); in ptrace_init_task()
204 child->jobctl = 0; in ptrace_init_task()
205 child->ptrace = 0; in ptrace_init_task()
206 child->parent = child->real_parent; in ptrace_init_task()
209 child->ptrace = current->ptrace; in ptrace_init_task()
210 __ptrace_link(child, current->parent, current->ptracer_cred); in ptrace_init_task()
212 if (child->ptrace & PT_SEIZED) in ptrace_init_task()
213 task_set_jobctl_pending(child, JOBCTL_TRAP_STOP); in ptrace_init_task()
215 sigaddset(&child->pending.signal, SIGSTOP); in ptrace_init_task()
218 child->ptracer_cred = NULL; in ptrace_init_task()